You need to add the following to your register_post_type()
array:
'has_archive' => 'service'
Related Posts:
- Can a custom post type have a Parent Page?
- How do I append multiple taxonomies to the URL?
- Multiple post types – share same ReWrite slug?
- Remove POST_TYPE from custom post type permalink
- Programmatically adding posts
- Extend the wp_get_archives output with ‘?post_type=foo’?
- removing custom tax & CPT slug, adding taxonomy term in front of custom type
- Permalink structure by Post Meta value
- Use same slug base for Custom Post Type posts, and multiple taxonomy terms
- Create a custom php page and load it at a specific slug
- How to include term custom meta into the custom taxonomy term permalink structure
- Is it possible to have hierarchical taxonomy and hierarchical custom post types in one permalink?
- Custom post type defaults to index.php for archive page
- Add category slug as class attribute in a link array
- How to create a custom search for custom post type?
- what is the correct way to compare dates in a WP query_posts meta_query
- How do you use a CPT as the default home page?
- Rewriting a custom-post-type permalink with taxonomy term?
- don’t publish custom post type post if a meta data field isn’t valid
- Custom Post Type Permalink Page Not Found
- Custom Taxonomy with Custom Post Type Finds No Posts
- Changing the URL Structure of a Paginated Custom Post
- add_rewrite_rule and custom variable
- How to achieve this permalink -> category-name/custom-post-type-name/post-name
- Understanding Permalinks on Custom Post Types
- Custom post type’s get_permalink returns wrong url
- ACF Relationships in Custom Post Type Permalink
- Prepend meta_value to permalink of post
- URL rewrite and navigation structure for wordpress custom post type
- Remove taxonomy slug when not assigning taxonomy with custom post types
- Add extra parameters after permalink?
- Restrict categories to a custom post type
- Permalinks for Taxonomy and Custom Post Type
- Keep main articles and author blogs seprerate, News / Magazine like site
- How to create a permalink structure with custom taxonomies and custom post types like base-name/parent-tax/child-tax/custom-post-type-name
- Share parent path between Custom Post Types and Pages?
- Custom Post Type, Saving Multiple Checkboxes
- How to create an advanced filter search?
- How do I get the permalink structure to work like this?
- How do I fix permalinks for custom post types that has the same slug as a page?
- Get rewrite slug of custom post type in template
- Placeholder in HTML editor text area?
- Custom rewrite rule for hierarchical custom post type
- How to integrate video slide using custom post types?
- 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?
- Time based access control of custom post types – what is good approach?
- Show titles, date of all posts on single category page
- 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?
- A form that can save/edit after first input
- Allow users to create posts without logging in?
- Form action doesn’t work if slug isn’t same as custom post title
- Categorise Custom Post Types
- Template files for Custom Post Type and Taxonomy
- Custom URL redirect in WP
- attach CPT data to a taxonomy
- Creating a non-hierarchical Taxonomy that behaves like categories
- Post type Permalink
- Custom Post type content within a slider
- Displaying a list of Contacts
- Custom Post Type with Configurable Sidebar via ACF
- Displaying One Custom Post Type’s Content On Single Post of Another Custom Post Type
- Setting a homepage – doesn’t seem to work
- Improve Custom Post Permalink Structure
- custom comment fields on CPT
- Add Class After 4th Post
- Pagination does not work on Custom Post Type archive while trying to get load more function working
- How set template for “custom post type” individual post
- Use Gravity Forms and a Shopping Cart for output to Freshbooks for an Estimate [closed]
- custom posts permalinks url rewriting
- Can I get an auto-populated dropdown list of other custom posts in a custom post edit page?
- How to enable to change Permalinks for Individual Custom Post Type
- WordPress next post by ajax call on button click
- Remove plugin settings from post creation page for a user role
- Permalink for specific post type
- How can I fetch all the dates from custom fields from various different custom post types and show / list them at one place in ascending order?
- Custom post shows 404 after theme change
- Show date as permalink for custom post type instead of post name
- Permalink for custom post type pages not working
- Adding specific custom fields (images) to post excerpt
- Change permalink incrementor into pseudo-subdirectory
- CPT – Custom Text fields point to new url permalinks
- Metabox messes up permalink
- Create custom YouTube-like permalinks for multiple custom post types
- Child Theme problems
- Is it possible to have public posts in a non-public custom post type?
- Permalink of custom post type partly broken
- Custom post type child page 404
- Sort by Custom Post Type (Multiple Loop)
- Remove Custom Taxonomy Slug only without removing Custom post type slug in permalinks
- Selecting which pages to display custom post type on using checkbox
- Custom Post Type Permalink
- WordPress Custom Permalink Structure with Custom Post Type and Taxonomies
- 2 language CPT content
- Is There A Way To Add Another Field To Custom Post Type (Not Custom Field/Meta)?
- Exposing custom fields to the user in custom type post
- How to automate the creation of advanced layout article/post