Try give a name for your rewrite, like so:
'rewrite' => array(
'slug' => 'news-updates-archive',
'with_front' => true,
'feeds' => false,
'pages' => true,
)
So you will avoid any problem.
Also, the last functions you’re using are unnecessary. You can setup it on register_post_type:
'taxonomies' => array('post_tag', 'category'),
PS: Try empty your trash also and double check if your custom post type name is not duplicated. Sometimes that’s the error.
Related Posts:
- Permalink Structure for Multiple Post Type Archives by Taxonomy
- Custom post types – Use post_id in permalink structure when using has_archive => true
- Meta_Query as a way how to setup CPT permalinks – is it a good thing?
- Custom Post Type Archives by Date with Custom Permalink
- Create permalink structure for one taxonomy archive per custom post type
- Custom Permalinks for Custom post Type Archives?
- Custom post type tag archives don’t work for basic loop?
- Custom post type with tags
- Change Permalink Structure for Tag.php template
- Best way to specify “article type” in URL
- Problems with 404, .htaccess, permalinks and WordPress custom posts locally on Snow Leopard
- How to constrain the results to a specific post_type on tag archive page?
- Advanced archive url structure (category, tag and date)
- How can i remove post type archive URL?
- Custom post type URL structure with site.com/custom_taxonomy_slug/post_name
- Custom Post Type tag taxonomy “Page Not Found”
- Archive.php is not displaying tags
- Is it possible to remove the word “date” from archives?
- Custom post types not using archive structure
- How to have a dynamic slug and rendering the archive-{post_type}.php?
- How to remove /blog/ prefix for custom post types in permalinks?
- WordPress Custom Post Type is Matching on Partial Slug
- Change slug of registered custom post type in child theme
- Templates for Custom Post Types and Custom Taxonomies
- Page is defaulting to archive page and not designated template
- Undefined property: stdClass::$labels in general-template.php post_type_archive_title()
- Custom permalinks
- Permalink for CPT with taxonomy
- Custom post type permalink changing itself every other change
- Add links to post categories and taxonomies in wysiwyg link modal?
- WordPress custom post type category pagination 404 Error
- Show Custom Post Type by Author
- Custom post type archive with pagination?
- Maintaining WP_Query Relation Among CPT, Custom Taxonomy, Permalinks- CPT UI
- Custom post type category, taxonomy and URL rewrite problem
- Root level category, tag, author and archive pages to work
- Rewrite on custom post type permalink not working?
- Custom Post Type: How to display all of same taxonomy?
- Remove “-2” from a Toolset Types URL with the same post name
- Custom Post Type with static page for archive
- Is it possible to make tag archive page specific to Custom Post Type?
- custom post type default permalink
- How to specify URLS for custom posts & taxonomies
- Search doesn’t find tags or categories in custom post types
- Second Custom Post Type Archive
- How to show the archive / post type description on Single templates
- is_main_query() not working for WP REST API
- Permalinks not working for custom taxonomy on custom post type
- Custom Post Type with archive page but no detail page
- Custom post type url with category
- Adding custom post category slug in permalink causes 404 error for pages and posts
- How can I use get_post_meta with add_rewrite_rule to build custom permalinks?
- How to set a CPT to have a page as a parent, then rewrite urls accordingly?
- Custom Post Type Permalink empty
- Change custom post type permalink to show name of post from another custom post type?
- Permalink structure with custom taxonomies and custom post type like /parent-tax/child-tax/custom-post-type-name (with no base name)
- Archive for CPT
- Form action doesn’t work if slug isn’t same as custom post title
- Check post on publish for blank title
- Tag page only display 10 posts
- Template files for Custom Post Type and Taxonomy
- Creating tags via API
- Custom Post type & Taxonomy 404
- Custom Permalinks with meta value not working. Why?
- Archive Page for Multiple Custom Post Types
- Custom Post Type with Configurable Sidebar via ACF
- Setting a homepage – doesn’t seem to work
- Archive page for custom post type and custom taxonomy
- Improve Custom Post Permalink Structure
- Using page title as a link to term archive
- Pagination does not work on Custom Post Type archive while trying to get load more function working
- How to mass get post editor URLs
- Error 404 change permalink term custom term taxonomy
- WordPress URL rewrites using Advanced Custom Field
- Preview url not working outside wp-admin
- how to display posts content on the custom css popup by clicking on each title on the sidebar?
- Custom post type defaults to index.php for archive page
- CPT tags not showing when editing post
- How to show custom post count in archive page
- Do not show child pages within a file page
- Archive for custom taxonomy
- How to add independent “Tags” to Custom Post Type?
- Adding categories to custom post type in permalink
- 404 custom post type
- How can I generate a list of post-type specific categories?
- Custom post URLs
- date archive future posts
- Custom post tag images not displaying with ACF
- How can I add a “fake” parent into the permalink?
- Keep same archive.php for post from archive?
- Custom Post Type Archive Links Not Working
- How to display custom post types AND regular posts separately on a shared taxonomy archive?
- WordPress Custom Post Type and sort by Tags
- Get post id of permalink for a specific custom post type?
- URL Rewrite Adjustment for Custom Post Type causes template to revert to index.php
- Add taxonomy to custom post type archive
- Custom post type – permalink
- Custom post types permalinks not working
- Tag-post relationship problem
- Custom post type with custom parent prefix slug