Support » Plugin: Better Related Posts » [Plugin: Better Related Posts] Related posts by tag AND by category
5 years, 6 months ago
I’m trying to display related posts by tag and by category. On our site at http://gamenightphotos.com, a “tag” represents a sport, and a “category” represents a school or club name.
As an example, I’d like to be able to display related (most recent) posts for “football” (tag) and “cedar park high school” (category).
Will your plugin allow for this? If so, what would the template tag look like?
Thanks in advance for the help!
What you’re asking for sounds like a simple WP_Query job, you don’t need my plugin to show posts that share two terms.
nkuttler, thanks for the input.
I can fiddle with code and make it work (sometimes), but I am more of a designer, so any additional help you can provide is appreciated!
Ideally I’d like the output to look similar to outbrain.com, nrelate.com or linkwithin.com plugins.
Let me try to explain further …I would like to display related posts on my “single.php” pages by category and by tag sorted by most recent. And then style it so it matches my theme design.
I’ve added this code within my single.php template and it works but how/where do I add the tag query?
[Code moderated as per the Forum Rules. Please use the pastebin]