Viewing 1 replies (of 1 total)
  • Plugin Contributor wpvideogallery

    (@wpvideogallery)

    Kindly try adding the following code in your theme’s functions.php file,

    function aiovg_remove_blog_from_url( $args, $post_type ) { 
        if ( 'aiovg_videos' == $post_type ) {
            $args['rewrite']['with_front'] = false;
        }
     
        return $args;
    }
    
    add_filter( 'register_post_type_args', 'aiovg_remove_blog_from_url', 10, 2 );

    Hope, this solved your issue!

Viewing 1 replies (of 1 total)
  • The topic ‘Remove blog from url’ is closed to new replies.