Forums

TDO Tag Fixes
help with usage (20 posts)

  1. deepbevel
    Member
    Posted 1 year ago #

    I'm really trying to figure out hhow to get this to work but I can't think of what else to try. I don't understand:

    "So go to one of your category pages. If your using using fancy permalinks then at the end of the url add "?tdo_tag=a_tag". If your not using permalinks then you can just use "&tdo_tag=a_tag". You must use the tag slug, not the full tag name. You can use multiple tags as above using "," and "+".

    I assume this is my "fancy permalink"

    <p>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></p>

    I found it in archive.php. I assume archive.php is one of my "category pages"

    but I have no idea where the end of the url is, I don't see an http anywhere. If anyone could show an example that would be great.

    Thanks.

    http://wordpress.org/extend/plugins/tdo-tag-fixes/

  2. zoonini
    help me help you
    Posted 1 year ago #

    Your code has been mangled - could you put your code between backticks of highlight and click the "code" button? Thx.

  3. deepbevel
    Member
    Posted 1 year ago #

    backticks of highlight?, man, I think I'm really out of my league here.
    but I'll give it a go

    Like this?

    <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e( 'Permanent Link to', 'buddypress' ) ?> <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>

    hopefully thats right. Thanks for getting back to me, do you understand my issue? I don't really know what is meant by "one of my category pages" so this may not be the link (fancy or no) which I'm supposed to add the code to.

  4. zoonini
    help me help you
    Posted 1 year ago #

    Whoops - sorry, that should have said "backticks OR highlight". ;-)

    I don't really know that plug-in, but could "go to one of your category pages" mean go to your category template - i.e. category.php in your theme folder?

  5. zoonini
    help me help you
    Posted 1 year ago #

    BTW - you don't see "http://" anywhere because the URL is automatically generated by <?php the_permalink() ?>. That'll end up being a URL that starts with http://

  6. zoonini
    help me help you
    Posted 1 year ago #

    How about trying:

    <a href="<?php the_permalink() ?>?tdo_tag=a_tag" rel="bookmark" title="<?php _e( 'Permanent Link to', 'buddypress' ) ?> <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>

    Replace a_tag with the actual tag.

  7. deepbevel
    Member
    Posted 1 year ago #

    Hey I did it! I always wondered how you guys did that. Thanks.
    Anyway, even if I knew what was meant by that, I don't know if I have fancy permalinks, and even if I did, I don't know how to add "&tdo_tag=a_tag" to the end of the url, I need to see an example or I'll struggle with syntax errors all night. This guy's plugins are great, but I often feel I need to take a class to understand how to use them. I got pretty good with mini forms, but this one may just be beyond what I can manage at this point.

    -never mind, you beat me to the responce, I'll try what you suggested, thanks a bunch!

  8. zoonini
    help me help you
    Posted 1 year ago #

    Re: fancy permalinks...

    Do your URLs look something like http://www.yourdomain.com/my-page

    Or more like http://www.yourdomain.com/?p=123

    If it's the first situation, you probably have what he's calling "fancy" permalinks. They're more often called "pretty permalinks" in WordPress lingo.

  9. deepbevel
    Member
    Posted 1 year ago #

    I got a page not found error;(

  10. zoonini
    help me help you
    Posted 1 year ago #

    OK, see my above question. Maybe you don't have pretty permalinks, in which case you need to use his second syntax option (or try to get pretty permalinks working, see the above link for that).

    <a href="<?php the_permalink() ?>&tdo_tag=a_tag" rel="bookmark" title="<?php _e( 'Permanent Link to', 'buddypress' ) ?> <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>

    Does the plug-in maker offer any support? Might be worth a shot contacting them if this doesn't work.

  11. deepbevel
    Member
    Posted 1 year ago #

    Then mine is fancy. And pretty.

  12. zoonini
    help me help you
    Posted 1 year ago #

    Did you make sure to edit "a_tag" to an actual tag? I don't actually know what this plug-in does, but "a_tag" is just an example in their code, you need to replace it with something real.

    "You must use the tag slug, not the full tag name. You can use multiple tags as above using "," and "+"."

  13. deepbevel
    Member
    Posted 1 year ago #

    I posted for help on his forum, I assumed that's how you found me. I'll just wait and see if someone comes through. Geez, all I wanted to do was show tags from a specific category. I'm having a hard time accepting it could be so complex. Feel like I'm missing something obvious...

  14. deepbevel
    Member
    Posted 1 year ago #

    I'll go over what you're explaining and see what I get. I didn't replace anything so that is certainly at least part of the problem.

  15. aprylemagistro
    Member
    Posted 1 year ago #

    Yeah, it sounds like you need to find the tag-slug and replace it with the sample text. Do you know how to find the tag slug? (go to Posts --> Post Tags and you should see slug listed for the category you're trying to use.

  16. deepbevel
    Member
    Posted 1 year ago #

    hmm, I don't think I'm supposed to enter a tag, the plugin is supposed to show whatever tags are in a category, I think. I hope!

  17. deepbevel
    Member
    Posted 1 year ago #

    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"

  18. deepbevel
    Member
    Posted 1 year ago #

    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?

  19. the_dead_one
    Member
    Posted 1 year ago #

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

    Something like this: http://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.)

  20. deepbevel
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic