Forums

[resolved] Showing Posts that contain a certain tag within a Category **fix included** (6 posts)

  1. Dave Bergschneider
    Member
    Posted 1 month ago #

    I have a client that is essentially wanting to use tags in parallel to Categories. Of course I advised against this practice however what the client wants, they get when possible.

    So essentially they intend to use categories as their primary method of navigation through the site. And then when a user clicks on a tag link within the post, it will show all posts with that tag BUT only within the current category. Is this possible?

    I know having the link show all posts with that tag is possible but I'm not sure if limiting it to posts within the category is possible.

  2. MichaelH
    moderator
    Posted 1 month ago #

    You will at least want to consider this plugin:
    http://wordpress.org/extend/plugins/tdo-tag-fixes/

  3. Dave Bergschneider
    Member
    Posted 1 month ago #

    That works exceptionally well. Do you know if this can be added as apart of the template as apart of the post info?

    This plugin is only fixing it if I navigate by category and click the tag from within the tag cloud widget. I'd like the tags within the loop to work the same way if possible.

  4. MichaelH
    moderator
    Posted 1 month ago #

    There is this:

    tdotf_the_tags can be used in place of [the_tags](http://codex.wordpress.org/Template_Tags/the_tags) and if used in a category archive, the tag links will point to the category archive filtered by the tag.

  5. Dave Bergschneider
    Member
    Posted 1 month ago #

    So your saying I should be able to do this?

    tdotf_the_tags('Tags:', ', ', '<br />')

    I get an error: Call to undefined function tdotf_the_tags() in /home/truimage/public_html/ifaw/wp-content/themes

  6. Dave Bergschneider
    Member
    Posted 1 month ago #

    Ah, I found the fix. Apparently there is a typo in the function within the plugin itself. However fixing this just made the function work like the normal the_tags.

    So afterdoing some more searching, this fellow figured it out and here is the documentation: http://wordpress.org/support/topic/214986?replies=2

    This corrected the links to use the categories as well.

Reply

You must log in to post.

About this Topic