Better Related Posts
Related posts by tag AND by category (3 posts)

  1. Rene Michaels
    Posted 4 years 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!


  2. nkuttler
    Plugin Author

    Posted 4 years ago #

    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.

  3. Rene Michaels
    Posted 4 years ago #

    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]

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Better Related Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic