Refer to the Template Hierarchy Codex entry.
- To display the archive index page for a custom post type, use template file
archive-{posttype}.php
. - To display a single post page for a custom post type, use template file
single-{posttype}.php
.
For your pagination issues with a custom query loop, look for related questions on the site.
Related Posts:
- what is the correct way to compare dates in a WP query_posts meta_query
- Query posts by custom post type and custom taxonomy
- Query post types with multiple keys
- Get all posts WHERE custom_field is LIKE value
- Setting posts per page in query_posts
- How to insert content from another Custom Post type into Post?
- Display only one post each WEEK
- Conditional Query of Custom Post Type and custom taxonomy
- will post_id ever change? Can I safely use post_id for custom queries?
- Custom Post Type Query for Sidebar Doesn’t Work on Front Page
- attach CPT data to a taxonomy
- Query Multiple Custom Post Types & Exclude a Taxonomy Term
- custom post type and user post count shortcode
- How to apply order on custom taxonomy and custom meta key on custom post type
- Inserting two categories
- Restrict custom post type to only site administrator role
- How to force one column layout on custom post type edit page?
- Custom post type archive 404’s with paginate_links
- Search multiple custom fields by using meta_query
- Redirect after deleting post and keep track of pagination
- Loading Custom Post Type Events into jQuery-based FullCalendar?
- Limit the post for differents custom post type in the same wp_query
- order by meta_value serialized array
- Custom Post Type with Custom Title
- remove_action conditionally for Custom Post Type
- How can I customize “Pages” admin (edit.php) and “Edit Page” admin (post.php) for bulk edit of custom content type?
- Assigning a role to a specific custom post type (and ignoring other post types)
- Display posts in random post types
- Multiple templates for custom post type
- Query for posts in 2 taxonomies
- How to make an archive page displaying posts in a date range
- How do I add a custom button to my “edit” list? ( edit.php?post_type= ) beside “Add New”
- Best practice for adding posts in bulk
- Display custom post types with custom date field value (before today) & order by custom date field
- How to get Custom Post ID by adding filter to child theme’s function
- How to dynamically build a multiple taxonomy query loop within a post type’s single loop?
- Remove All, Published and Trashed Post Views in Custom Post Type
- Multiple post type queries (with specific arguments for each)
- WordPress if in term*
- Weird problem happening with custom taxonmy when creating/updating posts
- CPT: if more than X images are in post, use pagination
- What’s a better alternative to this code?
- How to use custom taxonomies to reference complex relationships?
- Show a Category X’s custom post type on Category X archive page?
- How do I move/order posts with a tag to the end?
- Structure of data : CPT + terms
- Default text in a specific post type, but not visible?
- How to edit this code to get the categories in achieve page?
- WP_Query custom post type query not showing the exact post type
- How to remove post listing page for a custom post type
- How to include term custom meta into the custom taxonomy term permalink structure
- Homepage’s content is dependent on the custom field values (set automatically), how do I get homepage to update without manually updating page?
- Different Ways to Query Custom Post Types?
- How to show only the most recent post on my custom post type archive?
- Loop for custom post types filtered by a taxonomy
- Ordering Submenu Pages in WP 3.1
- How to customize work area / admin area in a custom post type without plugins?
- Change “empty trash” button text?
- Move Genesis Single Page/Single Post Title
- Querying multiple values from a single key
- find custom post type post by searching its custom field with my string
- FacetWP paging custom wp_query
- why post_class() function apply css classes to all other files?
- Custom post type’s posts are not showing anywere but in xml sitemap
- Only show columns in custom post type?
- Display Custom Post Types Glossary
- Can’t change posts per page in WordPress Post Type Query
- How should I structure complex content hierarchies?
- Convert Custom Table Data Based Plugin To Be Searchable
- Problems making shortcode with custom post types and taxonomy
- Find Posts based on Child Post value
- WP 3.1 custom post type permlinks
- Showing only posts from the current user who is logged in?
- Placing Admin Post Metaboxes in Tabs
- returning the currect URL for nested posts
- Why is my custom post content only viewable when signed into WordPress?
- Create a post automatically if search result has zero results
- Posts per Page on custom Taxonomy Template
- Querying posts that don’t have a certain key value or don’t have the key
- How to Disable option of meta field if that option is selected for any other post in custom post type?
- How to add custom supports for custom post types?
- Use WP pagination functions on a custom page template
- Getting Custom Posts with Custom Taxonomy
- Multiple WordPress Sites, Same Database but Filtered Content
- Problem to get the link of the default ‘post’ post type like the orther custom types
- How do I get the posts from single page custom post type from a sidebar to display in a page?
- Change Background Color For CPT Template
- Custom Query With Multiple Meta Key Value
- Add Excerpt On Quicksand Plugin
- Custom post type adding additional markup
- Advanced Custom Fields: query posts filtered by multiple field values
- How to make a template for a specific post of a custom post type?
- Bulk update custom post types
- show custom post’s post in two different divs [duplicate]
- Slideshow/Gallery plugin based on WP Core Gallery [closed]
- ACF select box css color change
- Creating post custom field text area
- Quering array of post types & pagination. Articles are repeating sometimes on different pages
- Same slug for Custom Taxonomy archive and CPT archive – Rewrite rule not working
- is therer any wordpress function to retrieve a specific html element from post content