Structure of post types for TV Shows and episodes
You can create the custom post type as usual and then use the Permalinks Customizer plugin to customize the permalinks as per your need.
You can create the custom post type as usual and then use the Permalinks Customizer plugin to customize the permalinks as per your need.
Custom permalink /%category%/%postname%/ produces 404 on each post
You to be sure: after editing the permalink you first have to click at the okbutton and then update the post as well. Don’t know if you did that. After doing that it might help to go to setting/ permalinks and press the blue update button (I don’t know the button label in english version..)
I found the issue. It was an events calendar plugin by Modern Tribe. This plugin was creating a ‘slug’ aka route as /events. I disabled the plugin.
How to search for images and get it’s link?
This could depend on your host server – I used to host my sites on a Zeus server and had this same problem. You’re probably not on a Zeus server, it’s more common to be on Apache. You can check with phpinfo. Create a file and call it phpinfo.php – include only this: <?php phpinfo(); … Read more
Based on what you wrote above I do not see the problem of changing the page name would result in 404 errors on sub-level pages. What you should look for 1- Check if you do not have active plugins like (The Event Calendar) or equivalents. Those plugins are already using, most of the time, those … Read more
Prevent 301 when a trailing slash added
You can change your permalink structure from settings->permalinks option in wp-admin. Please check below screenshot.
For following post type and taxonomy: /** * Register restaurant post type */ function wpse_287682_register_restaurant_post_type() { $labels = array( ‘name’ => __( ‘Restaurants’ ), ‘singular_name’ => __( ‘Restaurant’ ), ‘add_new’ => __( ‘Add new’ ), ‘add_new_item’ => __( ‘Add new’ ), ‘edit_item’ => __( ‘Edit’ ), ‘new_item’ => __( ‘New’ ), ‘view_item’ => __( ‘View’ … Read more