teddddd
Member
Posted 2 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.
edit the index.php file of your theme and change the tag call..
http://codex.wordpress.org/Template_Tags/wp_tag_cloud
teddddd
Member
Posted 2 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>
<div class="category"><?php _e('Filed under:','lightword'); ?> <?php the_category(', '); ?></div>
Try that.
Tremium
Member
Posted 2 years ago #
It kinda works...however: the layout is entirely messed up when I use that code.
andreiluca
Member
Posted 2 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>
The layout would not have "messed up" from the change I just gave you. You must have changed something else by mistake.
teddddd
Member
Posted 2 years ago #
Worked perfectly with andreiluca's fix, thanks a lot!