Edit slug url of "tdtax_app_category" to something custom.

Posted in: Newspaper
Post count: 2

How can we edit the url of the tdtax app category from newspaper App Find Pro?

For example my current url when visiting a category shows

http://website.com/tdtax_app_category/content-creation/

How can i edit the url slug of App Listings to make a custom or shorter url so it’s more user friendly such as

http://website.com/apps/content-creation/

Thanks for the help!

Post count: 27744
Post count: 220

Is it not possible to customize within theme features ?

Post count: 2

It would be nice if it’s possible. I followed the guide provided and nothing happened.

Post count: 21065

Hello!

I suggest you build your own CPTs so you can edit them in the CPT UI plugin.

Thank you!

Post count: 220

Can you please share steps to create CPT using this plugin without disturbing the existing setting with-in the theme

Post count: 21065

Hello!

Check the documentation here:
https://forum.tagdiv.com/introduction-cpt-acf-newspaper-theme/
After creating your own CPTs, you should change the CPTs field names in the tagdiv Composer too. So, those functions will work on your own CPTs.

Thank you!

Post count: 220

I tried this .. some how it did not work as expected ….

Post count: 220

After few trails and error.. I was able to make changes with the below code

/*
CHANGE SLUGS OF CUSTOM POST TYPES
*/

function change_post_types_slug( $args, $post_type ) {

/*item post type slug*/
if ( ‘program’ === $post_type ) {
$args[‘rewrite’][‘slug’] = ‘place’;
}

return $args;
}
add_filter( ‘register_post_type_args’, ‘change_post_types_slug’, 10, 2 );

/*
CHANGE SLUGS OF TAXONOMIES, slugs used for archive pages
*/

function change_taxonomies_slug( $args, $taxonomy ) {

/*item category*/
if ( ‘program-category’ === $taxonomy ) {
$args[‘rewrite’][‘slug’] = ‘locations’;
}

return $args;
}
add_filter( ‘register_taxonomy_args’, ‘change_taxonomies_slug’, 10, 2 );

Viewing 9 posts - 1 through 9 (of 9 total)
The forum ‘Newspaper’ is closed to new topics and replies.