[resolved] How can I take out the tags at the bottom of the posts? (8 posts)

  1. teddddd
    Posted 7 years ago #

    Hey guys,

    Basically I want to take the tags out of the bottom of my posts, and replace it with just the "Filed under:" and then the category. I'm horrible at php; I've tried moving things around and deleting and I can't seem to get it right.

    Any help would be much appreciated.

  2. ryans149
    Posted 7 years ago #

    edit the index.php file of your theme and change the tag call..


  3. teddddd
    Posted 7 years ago #

    Thanks, but I'm not sure exactly what I'd modify.

    Here's line 18 of index.php for quick reference:

    <div class="category"><?php $tag = get_the_tags(); if (!$tag) { ?><?php _e('Filed under:','lightword'); ?> <?php the_category(', '); }else the_tags(__('Tagged as: ','lightword'),', '); ?></div>

  4. <div class="category"><?php _e('Filed under:','lightword'); ?> <?php the_category(', '); ?></div>

    Try that.

  5. Tremium
    Posted 7 years ago #

    It kinda works...however: the layout is entirely messed up when I use that code.

  6. andreiluca
    Posted 7 years ago #

    Replace line 12 in index.php (1.6.8) with this:

    <div class="cat_tags"><div class="category"><?php _e('Filed under:','lightword'); ?> <?php the_category(', '); ?></div>

  7. The layout would not have "messed up" from the change I just gave you. You must have changed something else by mistake.

  8. teddddd
    Posted 7 years ago #

    Worked perfectly with andreiluca's fix, thanks a lot!

Topic Closed

This topic has been closed to new replies.

About this Topic