Search Divi Plus Documentation

Search for answers or browse our knowledge base.

< All Topics

How to change “dipl-team-member” slug from URL in DP team member

To change the slug for the DP Team Member Custom post type please add the following function in the function.php file of the child theme.

To do this follow the below steps:

Move to site Dashboard >> Appearance >> Theme File Editor >> Theme Files >> Theme Functions >> functions.php

function dipl_ct_change_post_type_slug($args, $post_type){
    if ( 'dipl-team-member' === $post_type ){
        $args['rewrite']['slug'] = 'team-member';
    return $args;
add_filter('register_post_type_args', 'dipl_ct_change_post_type_slug', 10, 2);

Change the value ‘team-member’ as per your requirement.

Was this article helpful?
0.5 out Of 5 Stars

1 rating

5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 100%
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.