• Resolved juzkyte

    (@juzkyte)


    Can you help me how to get similar posts from current taxonomys in a post?

    Thanks a lot…

Viewing 3 replies - 1 through 3 (of 3 total)
  • Check out the Jetpack plugin, it has a feature called ‘Related posts’ – it works by displaying posts with the same tags and categories of other posts at the bottom of the post in question.

    So it suggests similar posts to users.

    Is that what your looking for?

    Moderator bcworkz

    (@bcworkz)

    While Jetpack is a great plugin, it’s rather overkill if related posts is the only feature you will use.

    A bit of custom code can also get related posts. You use wp_get_post_terms() to get the terms assigned to the post. With those terms you can query for related posts with get_posts() or WP_Query.

    The specifics would depend on how and where you want to present the related posts or otherwise do something with the results. The code would go in a child theme or site specific plugin which can also be used to safely contain any other little hacks you might come up with.

    Thread Starter juzkyte

    (@juzkyte)

    Thanks for your suppport, I get_the_terms and used that terms to query_posts… ^^ that working!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Get similar post from taxonomy?’ is closed to new replies.