No results found. Try again with different words?

Search must be at least 3 characters.

Changing A Mockup URL Slug

SureFeedback has a built-in filter to change the custom post type urls used for mockups and websites. To change the url for mockup projects, add this code to your theme or child theme’s functions.php file:

/**
 * Change post type slug
 */
function wp123_ph_change_post_type_slug( $args ) {
	$args['rewrite'] = array( 'slug' => 'mockup' );

	return $args;
}

add_action( 'ph_register_post_type_project', 'wp123_ph_change_post_type_slug' );

Change “mockup” to whatever you want in your url. After you add this code, be sure to resave permalinks under Settings > Permalinks

Was this article helpful?


Did not find a solution? We are here to help you succeed.

Changing A Mockup URL Slug

SureFeedback has a built-in filter to change the custom post type urls used for mockups and websites. To change the url for mockup projects, add this code to your theme or child theme’s functions.php file:

/**
 * Change post type slug
 */
function wp123_ph_change_post_type_slug( $args ) {
	$args['rewrite'] = array( 'slug' => 'mockup' );

	return $args;
}

add_action( 'ph_register_post_type_project', 'wp123_ph_change_post_type_slug' );

Change “mockup” to whatever you want in your url. After you add this code, be sure to resave permalinks under Settings > Permalinks

Leave a Reply

Your email address will not be published. Required fields are marked *

LET’S GET STARTED

Ready to Give It a Try?

Start Your Free 14-Day Trial Now. No Obligation. No Reason Not To.

Trial Icon

14 Days Free Trial

Experience Our Platform Risk-Free

Docs Icon

Documentation

Articles that cover common questions

24/7 World Class Support Team

Friendly Support

Reach Out – We’re Here to Help

Scroll to Top