WordPress Reserved Terms, any workaround?
No, the list of reserved terms is there for a reason: to make sure WordPress core features relying on URL’s work correctly, and to prevent conflicts with content or plugins.
No, the list of reserved terms is there for a reason: to make sure WordPress core features relying on URL’s work correctly, and to prevent conflicts with content or plugins.
Use This… function chapter_post_type_init() { $labels = array( ‘name’ => ‘Chapters’, ‘singular_name’ => ‘Chapter’, ‘add_new’ => ‘Add New’, ‘add_new_item’ => ‘Add New Chapter’, ‘edit_item’ => ‘Edit Chapter’, ‘new_item’ => ‘New Chapter’, ‘all_items’ => ‘All Chapters’, ‘view_item’ => ‘View Chapter’, ‘search_items’ => ‘Search Chapters’, ‘not_found’ => ‘No chapters found’, ‘not_found_in_trash’ => ‘No chapters found in Trash’, … Read more
I run into a similar issue. I had to remove remove_meta_box(‘slugdiv’, [‘post’, ‘page’], ‘normal’); from my code. When you remove the slugdiv meta box the slug edit box for WP does stops working.
This’ll probably have a few quirks, but in practice it’ll do what you’re after. Note that it’s set to only work for posts (not pages or custom post types). All we’re doing is using the wp_unique_post_slug filter, which runs after WordPress has generated it’s own unique slug, and additionally checking it against all _wp_old_slug meta … Read more
How to show “slug” in admin column?
Duplicate category slugs from pages and posts
Memberpress custom fields – filtering content
I just ran a quick test and there shouldn’t necessarily be a “slug” — post_name in the $wpdb->posts table– until the post is published, so something is going wrong with your site– something has been modified. WordPress already checks for duplicate slugs. This is pretty critical functionality as certain permalink structures depend upon it. The … Read more
Use this function to remove the apostrophe: preg_replace( “/[:’]/”, “”, $title );
Found the old page in the wp_post table and deleted that row