WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Query for posts using same tags? (4 posts)

  1. DominicanoBro
    Member
    Posted 1 year ago #

    Hey guys I was wondering how would you query for posts with same tags?

    Let me explain myself better. I am trying to build a related posts footer using similar tags as the current post. Any ideas how to do this?

    The reason I wanna do it myself is because I want to use my current theme and layout that uses thumbnails, using plugins lacks personalization.

  2. esmi
    Forum Moderator
    Posted 1 year ago #

  3. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    also, to get the tags of the current post:

    get_the_tags() http://codex.wordpress.org/Function_Reference/get_the_tags

    either use get_posts() or WP_Query() for secondary loops.

  4. DominicanoBro
    Member
    Posted 1 year ago #

    Thank you this has helped a lot!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags