While registering custom_post_type use this parameters too.
‘publicly_queryable’ => true,
Then it should be look like this.
function wporg_custom_post_type() {
register_post_type('proctor-work',
array(
'labels' => array(
'name' => __( 'Works', 'textdomain' ),
'singular_name' => __( 'Work', 'textdomain' ),
),
'public' => true,
'has_archive' => true,
'rewrite' => array( 'slug' => 'proctor-work' ), // my custom slug
'publicly_queryable' => true
)
);
}
Related Posts:
- Filtering a custom post type by custom taxonomy in archive template
- Permalink Structure for Multiple Post Type Archives by Taxonomy
- get term archive url / link
- Pagination throws 404 error on custom taxonomy archive pages
- Archive page with multiple taxonomies rewrite
- Create permalink structure for one taxonomy archive per custom post type
- Pages, Custom Posts & Custom Taxonomy defining slug structure
- How to show a tag archive of one post type only
- Custom taxonomy archive page not working
- How to show multiple post types on taxonomy archive?
- Disable single pages and archives and keep preview
- How to create archive page for taxonomy terms within custom post type
- Category and post tag archives do not include posts from custom post type
- Get post type from taxonomy or category page
- custom taxonomy archive by year
- Display custom post type taxonomies as an archive page
- Archive page for taxonomy terms
- Custom Post Type Archive Page Filtering
- Root slug of taxonomy returning 404
- Create template for taxonomy results limited by Custom Post Type
- How do I check if the user is on a taxonomy term parent, child or grandchild page?
- Custom post type / taxonomy rewrite archive page 2 gives 404
- How can I get this request to use the Custom Post Type page template instead?
- Archive for a Taxonomy of a Custom Post type
- What’s the name of the custom post type yearly archive template?
- Custom Post type & Taxonomy 404
- Taxonomy archive 404ing (not term archive)
- Custom taxonomy or custom page templates?
- Dynamically insert an article at the top of a taxonomy archive – or?
- Only show posts with a specific term of an associated taxonomy in a custom post type archive
- Use the custom post type archive for taxonomies?
- How to rewrite custom taxonomy term archive to use THE SAME SLUG/front as CPT
- Get the link of the first post of a custom taxonomy in a custom taxonomy list
- Archive page for custom post type and custom taxonomy
- Advanced archive url structure (category, tag and date)
- How can I tell if I’m on a custom post type archive page?
- Set up Custom Taxonomy Archive Template File To Cover 3 Categories
- How to show custom post count in archive page
- Order archive custom posts by taxonomy term [duplicate]
- Custom category taxonomy – archive page not showing up
- Custom post type URL structure with site.com/custom_taxonomy_slug/post_name
- Custom taxonomy archive slug overwrites static page
- Custom Post Type tag taxonomy “Page Not Found”
- archive-{custom_post_type}.php not getting recognized wordpress
- Archive.php is not displaying tags
- How to display custom post types AND regular posts separately on a shared taxonomy archive?
- Taxonomy Query of Custom Post Displays Archive Instead of Posts
- How to have a dynamic slug and rendering the archive-{post_type}.php?
- Show custom category archive as front page and remove taxonomy slug from urls
- Custom Post Type Archives by Year & Month?
- How to modify URL structures in custom post types and taxonomies or terms
- Counting Posts of a Given Post Type Having a Specific Taxonomy?
- Integrating an interactive map into a WordPress custom post type
- Trouble adding custom featured image for custom taxonomy TERMS
- Category base to url in custom post type/taxonomy
- Paginated Taxonomy Term Archive including one post per term
- Include taxonomy slug in url?
- Is it possible to use pages to apply static content to each taxonomy level?
- custom post type and custom taxonomy url conflict
- How to display selected taxonomies by their parent
- Custom Field Order by Last Name and First Name
- Get archive post type name
- How to restrict users and admin from creating new taxonomy terms?
- Best way to save horoscope data
- Get taxonomy values based on wp_query results
- Ajax Custom Post Filter is not filtering
- Need Output Custom Taxonomy from Custom Post Type
- Display all taxonomy terms, add class if term applies to current post
- Custom WP Query on custom meta and sort by multiple meta keys value
- How to display Custom Taxonomy under Custom Admin Menu?
- Correct procedure for advanced permalinks
- Permalinks: custom post type -> custom taxonomy -> post
- How to get the intersection of two terms both from different custom taxonomies
- Add Custom Post Type of specific Custom Taxonomy to regularly blog loop
- WordPress Custom Post Type – show only certain posts that have specific taxonomy set
- Should I use custom taxonomies or not?
- display custom taxonomies limited to custom post type?
- I am trying to get cutom post cout by month of current taxonmy term
- Custom Post Type and Taxonomy Loop Output Is Wrong
- Nested Custom Taxonomies | Incorrect posts when querying
- Commas not displaying in implode
- “Cannot redeclare cpt_reg_tax()” because of functions.php
- custom taxonomy listing returns no posts
- Writing a custom Glossary plugin
- How to show Custom Post Types under Taxonomy in a new WordPress page template?
- How do i display all categories of a custom post type and have respective page for them?
- Insert custom taxonomy into category query
- How can i remove post type archive URL?
- 404 error next-page [2] PageNavi custom type taxonomy
- Slugs on hierarchical taxonomies
- WordPress query posts by custom post type not workng
- How to display category wise posts on seprarate template
- Display 2nd category, only once, as sub-heading, in the loop
- Fetch posts list from fist CPT taxonomy term and list under 2. CPT
- how to limit query_post to first page?
- How to query the content of a specific custom post type?
- How to pull a number posts from a specific Taxonomy within a Custom Post type
- Get only one custom post from each category
- Filtering custom post types using category taxonomy
- How to use wp_set_object_terms depending on page ID?