Viewing 4 replies - 16 through 19 (of 19 total)
  • Thread Starter deepbevel

    (@deepbevel)

    via the author: “Some fixes and extensions for WordPress tags such as a tag cloud using only tags found in a specific category and also tag and category intersection”

    Thread Starter deepbevel

    (@deepbevel)

    ummm, maybe I’m not even using the feature of the plugin that has anything to do with the tag cloud using tags in a specific category? Like I said, I got up today and thought I’d quickly set my tag cloud to show only one category. Now I’m messing with one of “The Dead One’s” plugins. how did that happen?

    Let me understand, you are trying to use my plugin to show posts with specific tags in a specific category, correct?

    Something like this: https://thedeadone.net/category/download/?keyword=wordpress (this link shows posts tagged with the tag “wordpress”, within my “download” category)

    The plugin is pretty old and I made it back in the day when plugins didn’t necessarily have admin pages in WordPress. If you just install and activate the plugin, you should be able to filter on tags in a category straight up with no other configuration.

    You need to find two things, the URL of the category archive in question (not the code in the template!) and the tag_slug of the tag (or tags) you want to filter on. You can find the tag slugs in the WordPress admin backend. Take the URL of the category page, then add ?tdo_tag=tag_slug (replacing tag_slug with the actual slug of the tag).

    (As for the “support” forums on my site. I’m planning on deleting them. I guess you didn’t see my blog post on it, so that pretty much nails why I plan to get rid of them.)

    Thread Starter deepbevel

    (@deepbevel)

    I managed to find this:

    <?php
    //for use in the loop, list 5 post titles related to first tag on current post
    $tags = wp_get_post_tags($post->ID);
    if ($tags) {
      echo 'Related Posts';
      $first_tag = $tags[0]->term_id;
      $args=array(
        'tag__in' => array($first_tag),
        'post__not_in' => array($post->ID),
        'showposts'=>5,
        'caller_get_posts'=>1
       );
      $my_query = new WP_Query($args);
      if( $my_query->have_posts() ) {
        while ($my_query->have_posts()) : $my_query->the_post(); ?>
          <p><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></p>
          <?php
        endwhile;
      }
    }
    ?>

    `
    But thanks for getting back to me. But I’ll probably try what you recommend anyway just to satisfy my curiosity, and of course so I can say I understand how to use another tdo recipe.
    I’m always so proud of that, your pulgs are not for the squeamish.
    I’ll check out your post, thanks again for chiming in.

Viewing 4 replies - 16 through 19 (of 19 total)
  • The topic ‘[Plugin: TDO Tag Fixes] help with usage’ is closed to new replies.