Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

Archieve.php not loading for custom post type

The single.php template is loaded when you visit a post. The archive.php page is a generic archive template, loaded in case a grouping of posts (a year, a month, a category, a tag, etc.) does not have it’s own template.

Please read this about template hierarchy.

If you want to create a custom post template for a specific post_type you have to create a dedicated template and call if single-post_type.php (replace post_type with your post type, i.e. product).

Related Posts:

  1. Filtering a custom post type by custom taxonomy in archive template
  2. Why are posts from custom post type not displayed in “category” archive?
  3. Displaying category archive of custom post types
  4. How to build a complex page structure
  5. Custom Post Type Archive URL takes over page URL
  6. Template tags to display custom post type posts in category template?
  7. Regex problem in an add_rewrite_rule
  8. Custom post type archive sorted and grouped by date in post meta field
  9. get_categories for custom post type and filter by custom taxonomy (brand) and list child categories of a defined category
  10. Category page only displaying the posts from a custom type
  11. custom taxonomy archive by year
  12. need advice on how to do a lists using custom post types – taxonomy vs postmeta
  13. Should I use custom menu, C.P.T. or theme options, or something else for this?
  14. CPT Archive with core Category
  15. Custom Post Type Archive Page Filtering
  16. Custom post types and category archive
  17. List Taxonomies: Don’t list taxonomy if it has no post – depending on custom post-meta?
  18. multiple custom post type on category page
  19. Meta data (Tags and Categories) for Custom Posts not showing.
  20. Archive links for custom post types
  21. Include custom post type custom taxonomies in Categories widget
  22. Archive Template being used instead of Category Template for Custom Post Type
  23. Why does my URL keep returning 404 error code?
  24. Menu’s breaking, now showing all page links on site
  25. Advanced archive url structure (category, tag and date)
  26. How can I tell if I’m on a custom post type archive page?
  27. Display all Categories except ones with a specific parent
  28. Custom post category name showing empty
  29. Save data is post using php front end
  30. Custom WordPress theme not displaying posts from category
  31. Creating an archive page or simple template to list all values of a custom field of specific post type listing
  32. Custom Post Type archive page listing a 404 or single post
  33. Get meta values from parent post and save in child post
  34. Adding Custom Post Types to category/tag/author archives breaks header content
  35. Custom category taxonomy – archive page not showing up
  36. Help with Multi Level Category Archive Page
  37. How can I generate a list of post-type specific categories?
  38. How To Display Category list from Portfolio post type plugin?
  39. Custom Post type archives / categories give 404
  40. archive.php can’t find categorized posts
  41. Having some trouble properly displaying Custom Post Types in templates
  42. How can I set up the URL for a category archive for a custom post type?
  43. Categories in custom post types
  44. Stop header code from showing in category page?
  45. Category names on CPT archive pages [closed]
  46. Show custom post type on post category page doesn’t work / breaks navigation
  47. Storing revisions of metadata for custom post type
  48. Add Category Taxonomy Support to Custom Post Type
  49. Pagination throws 404 error on custom taxonomy archive pages
  50. Custom Post Type with Input fields to seperate table on database.
  51. How Can I save multiple records in same meta key?
  52. How to Add Pages Under Custom Post Type URL Structure?
  53. Creating a custom post type upon registration
  54. Structuring a product catalogue in WordPress [closed]
  55. Showing Meta Data for Custom Post Types?
  56. Having trouble with custom post type / meta box
  57. Query for posts from any post type but only add instock products
  58. WP_Query with custom post_type and cat retrieving unwanted posts with the custom posts
  59. How to keep a check box in custom meta box for custom post type checked by default for add new post?
  60. Using date stored as custom field to filter posts displayed in admin
  61. Show Post Count of a Category
  62. Meta Box Only in CPT Edit Page, Not in Add New
  63. Filter categories of posts with checkboxes
  64. Custom meta box data array: foreach not working correctly?
  65. Display all posts in main category and 1 subcategory
  66. How to check if user meta field is empty in conditional else statement
  67. Custom post type getting wrong categories and tags
  68. How to display “Category and Post_tag” component in a CPT Gutenberg edit screen?
  69. How to produce a sub-page-system in WordPress
  70. Meta Data for Custom Post Type not saving
  71. Listing all slugs?
  72. Template Hierarchy for custom post type pages
  73. List categories, subcategories and posts from custom taxonomy and custom post type
  74. Custom Post type content within a slider
  75. Categories won’t appear on custom post type
  76. How can I get some of a posts meta data whilst it is still inserting?
  77. Archive page for custom post type and custom taxonomy
  78. How to order custom posts by one of the custom fields value, ‘date’?
  79. WordPress giving me the index
  80. Custom Post Type meta data getting deleted on bulk editing taxonomies
  81. What is the best way to set the post category (Custom Post Type) automatically based on the one of the tags assigned to the post?
  82. How can I write a function that would update any missing specific post metadata?
  83. Sudden 404 pages on product category archives
  84. Convert category to custom post type
  85. How can I display a specific category on Front-Page
  86. Archive for custom taxonomy
  87. Custom Function to redirect singular post if specific meta field is empty
  88. How to seperate posts by categories?
  89. WooCommerce change
  90. Custom Post Type is not respecting assigned categories
  91. Saving Child Terms on front end not setting parent
  92. Help with Travel Guide Setup
  93. update a posts of other custom post type
  94. Project Category Heading
  95. Getting Custom post category from Form
  96. date archive future posts
  97. Front end page submission form does not attach custom post type
  98. Category slug not showing for Custom Post Type
  99. Passing postid of Testimonial Custom Post in Shortcode Parameter
  100. How to determ a custom post type url?
Categories custom-post-types Tags archives, categories, custom-post-types, post-meta, theme-development
failed to open stream: Permission denied for WordPress plugin
disallow publish posts with special title

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • Get the name of the template/*html file used
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
  • How to display the description of a custom post type in the dashboard?
  • Critical error on image display
  • Copying WP data and files into new install?
  • How to determine the DirectAdmin WordPress backup date?
  • How to get list of ALL tables in the database?
© 2026 Read For Learn
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress