Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8690877
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T00:00:01+00:00 2026-06-13T00:00:01+00:00

I know I can create custom files for specific custom-post-types Unfortunately, the method works

  • 0

I know I can create custom files for specific custom-post-types

Unfortunately, the method works for me in one case:

  • page-results.php for CPT = results
  • but does not work for page-news.php where CPT = news
  • or does not work for page-events.php where CPT = events

Why? can you have just a single file like that?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T00:00:03+00:00Added an answer on June 13, 2026 at 12:00 am

    This might clarify some things for you:

    WordPress Template Hierarchy

    The problem is, your Custom Post Types aren’t actually “Pages”. Even a “Page” isn’t technically an actual Page, but a hierarchical Custom Post Type called “Page”. Confusing? Yes. But there’s a method to the madness.

    The built-in Post Type known as “Pages” do function differently than the built-in Post Type called “Posts”, which is why they have their own default templates and hierarchy. However, despite the fact that WordPress allows you to extend their core to include your own Custom Post Types, at their root they’re still considered “Posts” and will not follow the “Page” branch.

    Your two options if you’re following the standard Template naming conventions is to name your Custom Post Archive Templates “archive-results.php”, “archive-news.php”, and “archive-events.php”.

    As for your Custom Post Single Post Template, you would name them “single-results.php”, “single-news.php”, and “single-events.php”.

    If you want to fall back on an archive or single template for all three custom post types, simply don’t define the separate post types and define an “archive.php” and “single.php” file.

    Here’s some more information on Custom Post Type Templates

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know how to create a custom template for a specific page. However I
Does anyone know how I can Dynamically create an installation package that installs files
I created a Custom Tab Navigator and now I need to know how can
I know I can create a List<T> from IEnumerable<T> by doing myEnumerableCollection.ToList() , but
I know I can create a plot with line and dots using the type
Does anyone know how I can create a Completely transparent image or given am
I would like to know how can I create a regexp to match the
I want to know if PHPExcel can: Create Excel spreadsheets with embeded image. The
I want to know if I can create a WebBrowser through code in Vb.NET,
I'm using python 3.1.1. I know that I can create byte objects using the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.