Change Divi Custom Post Slug "Project"

Home Forums Themes Change Divi Custom Post Slug "Project"

This topic contains 0 replies, has 1 voice, and was last updated by  Michael Love 1 year, 6 months ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #472

    Michael Love
    Keymaster

    If you want to change the default slug for Divi Theme custom post type ‘Project’ i.e. /project/my-post to /MYSLUG/my-post/, activate plugin My Custom Functions
    and use the following code:

    function custom_post_name () {
    return array(
    'feeds' => true,
    'slug' => 'project',
    'with_front' => false,
    );
    }
    add_filter( 'et_project_posttype_rewrite_args', 'custom_post_name' );

    Change the slug from project to your choice. Then head over to permalinks and save the settings to update the database.

Viewing 1 post (of 1 total)

The topic ‘Change Divi Custom Post Slug "Project"’ is closed to new replies.