WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Rene Michaels
    Member
    Posted 2 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!

    http://wordpress.org/extend/plugins/better-related/

  2. nkuttler
    Member
    Plugin Author

    Posted 2 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
    Member
    Posted 2 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

About this Topic