• Resolved ViPeRx007

    (@viperx007)


    This is a pretty newbie question, I’m sure, but I’m trying to change the title of the Posts -> All Posts page on the admin side of WordPress. It currently is just “Posts”. Where do I go to do that?

    I’m doing a podcast website and I was able to change the menu item from Posts to Episodes and “All Posts” to “All Episodes”, but it still says “Posts” on the title of that page itself.

    Here’s a screenshot (red box is what I want to change): Screenshot

    Thanks in advance.

    • This topic was modified 9 years, 2 months ago by ViPeRx007.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    You can change the title using Yoast’s “WordPress SEO” plugin.

    https://kb.yoast.com/kb/yoast-wordpress-seo-titles-metas-template-variables/

    Thread Starter ViPeRx007

    (@viperx007)

    Thanks, but I thought that plugin was mainly for changing titles of pages and posts for the public side. I’m trying to change an admin template page title. Maybe I’m not looking in the right spot.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Is Episodes a custom post type or did you modify the post post type? It looks like you did the latter. (hmmm……) If so, how did you do it?

    Thread Starter ViPeRx007

    (@viperx007)

    I used a plugin called Admin Menu Editor, but it seems to only change menu names, not the templates.

    Maybe a custom post type would be simpler.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Thread Starter ViPeRx007

    (@viperx007)

    Thanks Steve, the solution on that page didn’t exactly solve my issue, but it did put me on the right path and I did finally figure this out. For anyone who wants to know, I ended up adding the following code to the functions.php file in my theme to change the default Posts to Episodes:

    // Function to change "posts" to "episodes" in the admin side menu
    function change_post_menu_label() {
        global $menu;
        global $submenu;
        $menu[1][0] = 'Episodes';
        $submenu['edit.php'][1][0] = 'Episodes';
        $submenu['edit.php'][10][0] = 'Add Episode';
        echo '';
    }
    add_action( 'admin_menu', 'change_post_menu_label' );
    // Function to change post object labels to "news"
    function change_post_object_label() {
        global $wp_post_types;
        $labels = &$wp_post_types['post']->labels;
        $labels->name = 'Episodes';
        $labels->singular_name = 'Episode';
        $labels->add_new = 'Add Episode';
        $labels->add_new_item = 'Add Episode';
        $labels->edit_item = 'Edit Episode';
        $labels->new_item = 'Episode';
        $labels->view_item = 'View Episode';
        $labels->search_items = 'Search Episodes';
        $labels->not_found = 'No Episodes found';
        $labels->not_found_in_trash = 'No Episodes found in Trash';
    }
    add_action( 'init', 'change_post_object_label' );
Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Admin side: Changing the title on Posts -> All Posts page’ is closed to new replies.