WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. teddddd
    Member
    Posted 5 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
    Member
    Posted 5 years ago #

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

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

  3. teddddd
    Member
    Posted 5 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. Samuel Wood (Otto)
    Tech Ninja
    Posted 5 years ago #

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

    Try that.

  5. Tremium
    Member
    Posted 5 years ago #

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

  6. andreiluca
    Member
    Posted 5 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. Samuel Wood (Otto)
    Tech Ninja
    Posted 5 years ago #

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

  8. teddddd
    Member
    Posted 5 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags