WordPress.org

Ready to get started?Download WordPress

Forums

Changing the link title for categories (3 posts)

  1. CaptainBlue
    Member
    Posted 5 years ago #

    I have a page which currently lists all categories (using the older list_cats command) but I'd like to change the URL title that is displayed on mouseover from "View all posts filed under {Category name}" to "View all records in the {Category name} category".

    I don't think it's in a template - though I may well be wrong - so where else can I find and change that variable?

  2. moshu
    Member
    Posted 5 years ago #

    wp-includes/classes.php, line #640.
    Remember, making changes to core WP files is bad karma :) you will need to redo them after every upgrade.

  3. CaptainBlue
    Member
    Posted 5 years ago #

    Thanks for the pointer. That's fixed one instance. Now I need to do the same where the individual categories are displayed with links to
    <?php the_category('
    ') ?> listing the other categories the entries appear in (it's using archive.php).

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags