# Rename "Posts" to "Articles"

> Changes every label of the built-in Posts type in the admin, such as the menu, buttons and messages, to a name that fits your site.

- Type: PHP
- Runs: Run everywhere
- Category: [Admin](https://wpide.com/library/category/admin/)
- Tags: admin, labels, posts
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/rename-posts-to-articles/

## Code

```php
// The new names for posts.
$wpide_post_singular = 'Article';
$wpide_post_plural   = 'Articles';

add_filter( 'post_type_labels_post', function ( $labels ) use ( $wpide_post_singular, $wpide_post_plural ) {
    $one  = $wpide_post_singular;
    $many = $wpide_post_plural;
    $low  = strtolower( $many );

    $new = array(
        'name'                  => $many,
        'singular_name'         => $one,
        'add_new_item'          => "Add New $one",
        'edit_item'             => "Edit $one",
        'new_item'              => "New $one",
        'view_item'             => "View $one",
        'view_items'            => "View $many",
        'search_items'          => "Search $many",
        'not_found'             => "No $low found.",
        'not_found_in_trash'    => "No $low found in Trash.",
        'all_items'             => "All $many",
        'archives'              => "$one Archives",
        'attributes'            => "$one Attributes",
        'insert_into_item'      => "Insert into $one",
        'uploaded_to_this_item' => "Uploaded to this $one",
        'filter_items_list'     => "Filter $low list",
        'items_list'            => "$many list",
        'item_published'        => "$one published.",
        'item_updated'          => "$one updated.",
        'item_scheduled'        => "$one scheduled.",
        'item_reverted_to_draft' => "$one reverted to draft.",
        'menu_name'             => $many,
        'name_admin_bar'        => $one,
    );

    foreach ( $new as $key => $value ) {
        $labels->$key = $value;
    }

    return $labels;
} );
```

## Notes

Only labels change; URLs, the post type name and existing content stay the same.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Rename "Posts" to "Articles"" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
