If you are simply registering a custom post type called ‘services” then your register code should look like
register_post_type( ‘services’, $args );
Make sure the word “services” is exact in register_post_type. And
Your post_type word should be max. 20 characters, can not contain capital letters or spaces
Also make sure your has_archive parameter is set true like this
‘has_archive’ => true,
And don’t forget to flush the rewrite rule by clicking save in permalink setting in your backend after any change in the slug or permalink.Hope this helps you
Related Posts:
- Is it possible to have an index page for taxonomy term for each custom post type it is assigned to?
- Custom Post Type with Nested Taxonomy and Template Files
- Archive or taxonomy pages not working for custom post type
- Trying to manage templates on a blog with lots of custom taxonomies
- Custom post type and taxonomy permalinks – Structure
- Custom Taxonomy term archive template
- Custom post type templating problem
- How do I check if the user is on a taxonomy term parent, child or grandchild page?
- WordPress Doesn’t Generate Taxonomy Archive
- Getting custom taxonomy posts on archive page
- Archive page of taxonomy returns a 404 error
- Specific template for subcategory of custom taxomy
- taxonomy – templates are not loading
- Templates for CPT not working
- Single taxonomy for different custom post types
- List a custom taxonomy’s terms, with links, on the taxonomy page
- Custom taxonomy meta fields
- Advanced search form with filters for custom taxonomies and custom fields
- Show Custom Taxonomy Inside Custom Menu
- Custom Taxonomy’s Label to change the text appearing in Appearance > Menu
- Why does a custom post type need the ”hierarchical’ args setting?
- Permalink rewrite with custom post type and custom taxonomy
- Semantic URL Custom Post Type and Taxonomies permalinks
- 404 error PageNavi custom type taxonomy | wordpress
- Custom Post Types – Titles as Taxonomies
- Query for posts in 2 taxonomies
- Using pre_get_posts to Filter Posts
- Custom post types – show specific posts
- Query for custom post type objects in a taxonomy and with a meta value
- Get post type from taxonomy or category page
- get_categories() for only CPT
- custom taxonomy archive by year
- Add nonexisting pages to navigation
- Custom Post Custom Taxonomy Data Not Saving in Edit Screen
- Can custom taxonomies items have attached properties?
- Associate custom post types with normal posts
- WP 3.0.5 – Custom posts matching 2 taxonomies
- Custom Post Type Loop within Shortcode
- How can you handle rewrite rules for custom post types with option to filter on custom taxonomy terms?
- Custom Post Type – Display Categories & Tags In Dashboard list
- How do I make a custom taxonomy for a CPT appear inbetween title and editor boxes?
- Display CPT posts based on specific taxonomy
- Filtering WP_Query Dynamically on the Front-End
- Why get_posts() not returning only selected category posts from Custom Post Type?
- Query with no terms uses index.php template instead of archive.php
- How to use custom taxonomies to reference complex relationships?
- custom taxonamy and post type
- Taxonomy custom post type URL
- Getting categories of posts under a custom taxonomy
- How do I display the taxonomy for a custom post type in an array
- WP Rewrite Rule Issue while using Custom post type & taxonomy
- Lists custom taxonomy terms that has specific custom field value assigned to the term (not post)
- Add term to custom post type on draft
- Multiple tag cloud filtering
- Best way to organize book-page structure
- Get url.com/post_type/taxonomy/term work!
- custom post type vs. conditionally displaying meta boxes for specific terms?
- WP_query – Filter by tax_query and meta_query using multiple select
- Hide meta box for everything BUT a certain custom post type
- Custom taxonomy or custom page templates?
- Only show posts with a specific term of an associated taxonomy in a custom post type archive
- Custom Post Type Advanced Slug
- Templates for hierarchical custom post type
- filter by custom taxonomy using ajax
- Display custom tags for custom post listing page
- Should putting custom code in functions.php or created the plugins [duplicate]
- Page listing all categories for CPT
- List child categories from parent category on custom taxonomy page
- Grab all Custom Posts by multiple taxonomies and terms
- What should I learn to develop event management in wordpress? [closed]
- Create a custom taxonomy template that loops through child categories in term order?
- Custom Post Types and Complex Content Hierarchy
- If custom taxonomy else conditional [closed]
- How to filter Multiple taxonomies with radio buttons
- ACF – Retrieve custom taxonomy from a relationship field
- Restrict access to custom post type based on its taxonomy terms
- Create loop from selected terms in ACF taxonomy field
- Sort custom posts by date and then by taxonomy
- How is possible to know ID of taxonomy-{taxonomy}.php page for ACF fields
- Display CPT Category List as Shortcode
- Need help with Custom Taxonomy + Custom Post Type
- Aloha! VERY broad CPT questions. Looking for the theory/best practices behind it
- URL for archive of custom post type with 2 taxonomy terms
- Custom post type single with custom URL structure
- WordPress custom post type taxonomy paging
- List posts that have the current url taxonomy
- wordpress does not see the correct custom taxonomy hierarchy
- Getting Custom Posts with Custom Taxonomy
- How to get all posts assigned to a taxonomy term only?
- Error get_posts with Custom Taxonomy and OR relation
- Custom Taxonomies in body class with parent slug
- Multiple archives for cpt, taxonomies, terms
- How to pass taxonomy terms to WP_Query along with $args?
- Display custom Taxonomies same as listing Categories
- Order by custom field attribute
- Custom post type and custom taxonomy archive inaccessible
- Determine category in taxonomy of current custom post type
- Custom Post Types on Custom Categories
- Post term block variations not generated for custom taxonomies
- Rewrite taxonomy permalink appended to CPT archive url