Create file named post-types.php in the mu-plugins (must use) folder:
wp-content/mu-plugins/post-types.php
If You’re using variables, only it’s name need to be changed
You can use more parameters
Remove slug from custom post type post URLs
If You don’t want to use the Custom Post Type’s slug, just paste this snippet in your functions.php and rewrite the post type:
Leave a Reply