I guess another way would be including 'has_archive' => true,
into your register_post_type array and using archive-{posttype}.php to style your custom post type listings
Related Posts:
- Allow non-logged in users to see a future post after clicking on a list of future posts
- How to use posts as tabs in a custom page?
- Creating Slider in wordpress theme with custom post
- Get term name and term parent into custom post type permalink
- Help need making decision. Ads rotating site on wordpress
- Query & Order posts by custom fields
- Exclude pages in archives results
- custom taxonamy and post type
- What is the recommended / best way to do this: Event calendar post/type in a block-based theme?
- Make parts of your wordpress website completely built with data from external APIs?
- Return the latest post from a custom Taxonomy and Post Type
- Don’t know how to show custom taxonomies from a custom post_type
- Trouble with CPT Child 404
- Database to page routing API?
- Not Able to Get Custom Post Type Gallery Images URL
- JS innerhtml changing style when using AJAX
- Assign same parrent Page to pages AND custom post types
- Display a grid of taxonomy terms at root taxonomy page
- How to Upload CSV Data into Custom Post Type Data with Metabox programmatically
- Allow Static Page Load Dynamic Child Pages
- How to change the post type a theme shows by default?
- Get unique superset of taxonomy terms from a list of custom posts in another hierarchical taxonomy
- No Permission to add new Page, Post or CPT with Admin role
- Event Custom Post Type Title show by upcoming Event Dates
- How to have this permalink structure: post_type/postname/custom_inner_page
- Static page determines as home, but it is not
- Building a Treatments Page, What Do I Use?
- Show Custom Post Type meta boxes only on Page Edit
- Why does my content disapear when I make a page to match an archive name?
- How to use Custom Page Templates for hierarchical Custom Post Type
- Custom post types and category archive
- Top Level pages in wordpress giving 404, but child pages working fine
- custom comments form for custom post type
- Page for custom post type
- How to produce a sub-page-system in WordPress
- WebP Fallback for Inline Background Image in Style Attribute
- How to specify a template for a path like http://example.com/something?
- Why does not this wp_redirect work in is_single()?
- Why is get_pages() returning a boolean?
- Warning: Invalid argument supplied for foreach() [closed]
- Custom post type isn’t working
- Pros and cons of a custom page vs custom post type template file
- Warning: Invalid argument supplied for foreach() in post.php [closed]
- How to include custom post type posts on a page?
- How can i link a custom post type thumbnail to intermediate size
- Including link to custom post type in ‘wp_list_pages’ function
- i cant see the max_num_pages of a custom wp query
- Archieve.php not loading for custom post type
- the_content(); of custom post type treated as an array or object
- Getting Un Wanted Gallery Shortcode In The Page on Loop
- Multiple pages per post (not pagination)
- detect your custom post type in WordPress
- Display custom post using ID
- Can I change my post type to anything and my site still work?
- Custom WP_Query doesn’t display all posts
- Specify a particular page to list all custom types
- Page listing Custom Posts
- WordPress app page not found error for posts with hyphen in permalink
- Where is the sticky post option?
- Display an authors post on a single page only when they are logged in
- Why are some of my custom posts not showing up on my page?
- Two column layout with alphabetical ordering
- Create a comments template for custom post types
- Custom post type permalink sends to 404.php
- WP_Query with custom post type ID
- Merge page with custom post type
- Conflict between wp_list_pages and get_posts – list pages not displaying
- Hide Status Option From WordPress Publish Metabox and Rename Published on:
- Api rest_route 404 while building filter for custom posts (filtered by multiple meta keys / custom fields)
- how to get this tax_query working?
- Show Taxonomies with admin area for custom post type?
- Pagination doesnt work in custom post type
- Archive links for custom post types
- Include custom post type custom taxonomies in Categories widget
- Template Hierarchy for custom post type pages
- Should Custom post types and fields be in the theme files or in a custom plugin packed into the theme?
- Custom post type’s posts are not showing anywere but in xml sitemap
- How to Use Custom Meta Field Instead of CPT Title in Post URL
- URL Rewrite – Page Archive
- How to set the mainpage of a custom post type?
- Assign a template to a custom post type when displayed by the main loop on the home page
- Custom Post type content within a slider
- If Post type use sidebar (‘tree’)
- Methods for development wordpress themes [closed]
- Render a Post or Page using the correct file
- Custom Post Type – after disable ‘Add New’, I can’t edit and delete post
- Having Issue on Getting Metabox Checkbox Value
- Searching post types
- Custom meta box in custom post type not working
- Add admin script to several post types
- Setting a homepage – doesn’t seem to work
- Under What Conditions Can I name my CPT the same as my CPT Page?
- custom post creation on front page – on submit a search is done
- Why does my URL keep returning 404 error code?
- wp_dropdown_pages with tax_query clause
- Am I mixing up the concept of posts pages and categories?
- How to setup different permlalinks for posts and pages?
- Make Next and Previous on single-$posttype.php use the same order as archive-$posttype.php
- Custom Post Type – Main page for certain posts
- Getting subpage of subpage – Custom posts