Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author MyThemeShop

    (@mythemeshop)

    Hello @trangitt

    Sorry for any inconvenience that might have been caused due to that.

    Do you still need assistance on this issue?

    Looking forward to helping you. Thank you.

    Plugin Author MyThemeShop

    (@mythemeshop)

    Hello,

    Since we did not hear back from you on this matter, we are closing this support ticket assuming the issue’s resolved.

    If you are still facing the issue or have any other question, please feel free to open a new support ticket. We are here to help.

    Thank you.

    Yes he should still have that issue.

    I’m also having the same issue. https://prntscr.com/lk74ji

    Hello,

    Thank you for contacting MyThemeShop. it is not possible to make this URL change using the plugin options. it will require a custom code to be added to your child theme.
    Please add/append the following code to the functions.php file of your child theme.

    function mts_custom_post_type_args_change( $args, $post_type ) {
        if ( $post_type == "listing" ) {
            $args['rewrite'] = array(
                'slug' => 'listing'
            );
        }
    
        return $args;
    }
    add_filter( 'register_post_type_args', 'mts_custom_post_type_args_change', 24, 2 );

    You can change ‘slug’ => ‘listing’ and replace “listing” with your desired text to make the change in URL.
    After adding the code, please go to Settings -> Permalinks and hit “Save Changes” once.

    I hope this helps.

    Thank you

    Thanks.
    WIll try out ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to change slug url’ is closed to new replies.