Forums

[resolved] change 'the_tags' on categories results page (3 posts)

  1. steeephen
    Member
    Posted 2 years ago #

    Hi,

    I needed to change "the_tags" on my posts and search results to display the word "Operator: " instead of "Tags: "

    i.e. <?php the_tags('Operator: ', ', ', '<br />'); ?>

    The .PHP theme files I've changed "the_tags" on are single.php, search.php and index.php (I'm using the default WP 1.6 template)

    The change has worked successfully for single posts and search results but when I click on a category, the results (listed posts) that are displayed show the word "Tags: " instead of "Operator: "

    Any ideas on how to fix this? Is there another place I should be changing "the_tags" on?

    Thank you.

  2. doc4
    Member
    Posted 2 years ago #

    steeephen,

    Have you checked the category.php file for this code as well. My assumption is that there are a few remaining instances of the_tag that have gone unchanged. Double check all the necessary files once more.

  3. steeephen
    Member
    Posted 2 years ago #

    I double checked all of the php theme files again and yes - I'd missed one:

    archive.php contained another instance of "the_tags" which has now been changed.

    Everything is working exactly as I want it to.

    Thanks for your advice.

Topic Closed

This topic has been closed to new replies.

About this Topic