Support » Fixing WordPress » Query for posts using same tags?
4 years, 4 months 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.
http://codex.wordpress.org/Function_Reference/WP_Query (for a list of parameters that you can use with query_posts)
also, to get the tags of the current post:
either use get_posts() or WP_Query() for secondary loops.
Thank you this has helped a lot!