WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Changing registered custom post type name (3 posts)

  1. katalonian
    Member
    Posted 1 year ago #

    Hello! I need help. I want to change register_post_type name:

    register_post_type('name which i want to change',$args);

    This is same as page name, so i can't use pagination, because i get 404 error.

    But when i changing it, i lose all posts in this type.

    So how to change it in good way?

    Please help!

  2. keesiemeijer
    moderator
    Posted 1 year ago #

    Try changing the rewrite rule 'rewrite' => array( 'slug' => 'other-name' ), when registering your post type:
    http://codex.wordpress.org/Function_Reference/register_post_type

    You probably need to re-save your permalink structure under wp-admin > Settings > Permalinks after changing the rewrite rule.

  3. katalonian
    Member
    Posted 1 year ago #

    Thank you!!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.