Support » Fixing WordPress » How can I take out the tags at the bottom of the posts?

  • Resolved teddddd

    (@teddddd)


    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.

Viewing 7 replies - 1 through 7 (of 7 total)
  • edit the index.php file of your theme and change the tag call..

    http://codex.wordpress.org/Template_Tags/wp_tag_cloud

    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>

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

    Try that.

    Tremium

    (@tremium)

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

    andreiluca

    (@andreiluca)

    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>

    Moderator Samuel Wood (Otto)

    (@otto42)

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

    teddddd

    (@teddddd)

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How can I take out the tags at the bottom of the posts?’ is closed to new replies.