Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
change testimonial slug from child theme
add_filter( 'presscore_post_type_dt_testimonials_args', 'my_testimonials_slug' );
function my_testimonials_slug( $args ) {
$args['rewrite'] = array('slug' => 'mytestimslug');
return $args;
}
@thecodepoetry

This comment has been minimized.

Copy link
Owner Author

commented Mar 7, 2016

Add this code in your child theme functions.php to change testimonial slug, replace "mytestimslug" with your custom slug

@constantinosbou

This comment has been minimized.

Copy link

commented Nov 19, 2017

For Benefits ?

@sanwarhaider

This comment has been minimized.

Copy link

commented Jan 28, 2018

For benefits, I used this. but 'Nothing Found' when I tried to visit the archive page.

add_filter( 'presscore_taxonomy_dt_benefits_category_args', 'my_benefits_category_slug' );

function my_benefits_category_slug( $taxonomy_args ) {

	$taxonomy_args['rewrite'] = array('slug' => 'benefits-category', 'with_front' => false );
	return $taxonomy_args;

}
@7einhalb

This comment has been minimized.

Copy link

commented Dec 14, 2018

Try to refresh the permalinks at --> Dashboard -> Settings -> Permalinks and press “Save”. This should work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.