Reply To: How to display post's category on related posts

Home Forums Product Support Forums Related Posts Pro for WordPress Support How to display post's category on related posts Reply To: How to display post's category on related posts

#7163

Ernest Marcinko
Keymaster

Indeed, I tested it and there was an error. Change line:

$post_categories = wp_get_post_categories( $post->ID );

to

$post_categories = wp_get_post_categories( $post->id );

and it should start working 🙂

Best,
Ernest Marcinko

If you like my products, don't forget to rate them on codecanyon :)