If you want to change the slug for your 'business_listing' post type to 'business', then add this code in your 'code-snippets' plugin.
https://zemez.io/wordpress/support/knowledge-base/changing-custom-post-type-slug/
Step 1: Modify code to match your post type
add_filter( 'your-post-type_post_type_args', '_my_rewrite_slug' ); // Here replace "your-post-type" with the actual post type, e.g., "cherry_services", "cherry-projects"
function _my_rewrite_slug( $args ) {
$args['rewrite']['slug'] = 'our-services'; // Replace "our-services" with your preferable slug
return $args;
}
Step 2: Refresh permalinks
- Go to permalinks page - /wp-admin/options-permalink.php
- Click "SAVE"
Change Slug for Custom Post Types