Please check WordPress theme hierarchy and you will know which file you need to create for custom post types 🙂
http://codex.wordpress.org/File:Template_Hierarchy.png
Most likely you are after archive-$posttype.php
Related Posts:
- Fatal error: Call to undefined function mysql_connect()
- How to Add Image to WordPress RSS-Feed with no Plug-in?
- Childs PHP files not overwriting Parent’s PHP files
- How to add active class to custom menu using while loop and wp_list_pages
- How can I run a .php file located in my site’s root folder?
- How to return a string that has a variable inside in a shortcode?
- Cleanest/Fastest way to avoid calling and retrieving data from the database multiple times?
- Saving metabox repeatable fields
- Get list of WP Updates Across Sites
- Remove General Tab and Plugin Tab in Settings in Woocommerce
- Woocommerce HTML email option unavailable
- Use template for posts with a particular category grandparent
- How to start a script from cli within wordpress
- How to group 2 radio buttons in a widget?
- What’s the best user registration library to integrate WordPress?
- Missing sidebar parameter “fix” – before_content
- Page Automatically Generated from Theme?
- Adding Custom Slider
- Displaying custom taxonomy on WooCommerce product page
- Don’t insert if permalink is the same?
- PHP errors in class-wp-query
- Store a default value for a transient on plugin activation
- conditional logic for front-end custom field edits
- Custom posts in different columns style
- Insert custom PHP head above in WP pages
- Can we count the WordPress Loop
- Display most popular posts of category
- Is there a way to hook or call a custom woocomerce template that is not part of the default templates of woocommerce?
- Warning message (re. php) on the blog page
- Fixing Memory Leaks in WordPress (HHVM)
- Get html data with javascript to php array and store to wordpress database
- How to use array in function to get only value I want
- Apply class to every third list item? [duplicate]
- How to include custom code on a page that’s set to act as homepage?
- How to remove sidebar primary widget on Mobile on category page [closed]
- How to upload WP user avatar on woocommerce account page [closed]
- Argument for if term-> have child?
- add_filter function concatenate string and locate_template function
- HTTP ERROR 500 after installing child-theme [WordPress] [closed]
- get users search not working with array
- How to return a string that has a jQuery and Ajax inside in a shortcode?
- How to get a list of users who like a current wordpress post [closed]
- get_page_templates only return templates with “home” in the filename
- ‘pre_user_query’ interfering with user export
- Custom CSV exporter – Cannot modify header information – headers
- Custom post type url Rewrite (conflicting with page url)
- WordPress custom taxonomy
- pagination broken – clicking next displays “page not found”
- PHP: How to access db the right way in plugin?
- Search.php gets metadata from first post
- Using Ajax to submit a form, and run a SQL Select query based on user input from the form
- WordPress Multisite login_redirect to primary blog and specific page based on role
- Pagination at category doesnt work with same name of page
- How to remove the two duplicate values
- Date translation doesn’t work
- Is it secure to use SMTP password in .php file in WordPress website?
- Woocommerce – Exclude variation attribute on specific variation
- Sort new column in Users wp-admin
- call to undefined function mysql_connect
- Can’t pass var from php wp_ajax into ajax script : result undefined or null
- Custom PHP form needs refresh to load page correctly
- Child-Theme Category View with modified permalinks (%category% removed)
- WordPress add custom search
- Show data obtained from a function and place it in a shortocode function
- add custom metabox to media library custom widget
- wp_signon works local, not on https
- Get WordPress username to customize url
- Delete empty title_tags, find a h1 heading and echo it
- Get posts from year from URL
- HELP: cannot log into wordpress. PHP error
- add_action in wp_head accessible from class
- WP_Query To Display Product Of Brand On Taxonomy Page
- How to have more than one ID included in the exclude command?
- Search for images that width and height is more than 500
- How do I get object if class is instantiated only like this new classname()
- How to create a php page to collect information from a html page
- Default Image not showing up in Customizer for WP_Customize_Cropped_Image_Control
- wordpress ajax return 0
- I need help implement a Javascript code into the PHP file
- Passing different content to template parts
- Admin bar nodes
- My customizer’s setting doesn’t set to the default and needed to click the control’s “Default” button before it’ll be set
- Run insert if no entry otherwise run update with ajax
- Hide cart when empty [closed]
- Overwriting a Shortcode
- Post Title Not showing up
- if is_home(), change class of menu-item-225 of wp_nav_menu
- WordPress most commented posts of last X days
- How to check if a value exists in one of two database tables
- Is this WordPress code causing page weirdness? Can’t scroll to bottom
- Search result page – display values from the result’s metaboxes
- What is the wrong with this function to enqueue the scripts and styles to the theme? [closed]
- How to use multiple 404 Error Pages in WordPress
- Parse error: syntax error, unexpected ‘}’ in
- WordPress add parameters with friendly url structure
- Different behaviour between “include_once” and directly echoing out html code?
- How to limit the number of posts in the wordpress loop in conjunction with the “download more” button?
- seo meta description issue in google search
- Redirect loop upon installation of my plugin
- PHP Works only for logged in users: [closed]