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 8830031
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T07:58:24+00:00 2026-06-14T07:58:24+00:00

I have a custom post type (that I’m using on a template page), the

  • 0

I have a custom post type (that I’m using on a template page), the custom post type is called ‘Headerhome’.
When I post say a gallery there I’m trying to get it to redirect to ‘single-Headerhome.php’, yet it always just goes to ‘single.php’.

The name of the custom post type itself is arbitrary, the name of the templage page it’s on is ‘home’.

I’m really confused, I’m not the best at WP yet so when something simple like this doesn’t work I have no idea how to fix it, even after pouring over the codex for an hour.

  • 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-14T07:58:25+00:00Added an answer on June 14, 2026 at 7:58 am

    The name of the custom post type itself is arbitrary, the name of the templage page it’s on is ‘home’.

    Reading this implies that you have a home.php file in your theme, which would automatically display as your front page of your site. This may not be what you desire? More on this here: http://codex.wordpress.org/Creating_a_Static_Front_Page

    An example of a custom post type might be an Event. The Event might have custom fields associated with it, like Location, Date, Time, Description. We would probably want new Events to show up on our front page, but also would want to create a custom theme file so when a user clicks on an Event from the home page to view the Event then the Event page shows our Date, Time, Location, Description, etc. We would then create a single-event.php to do this and put in any custom code their.

    So (another example), a custom post type of Fruit would have an associated theme file of single-fruit.php. If their is no single-fruit.php then WordPress will use single.php as the default theme file to display. More on this here: http://codex.wordpress.org/Post_Types#Template_Files

    Hope this helps set you in the right direction.

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

Sidebar

Related Questions

I have a template that displays the titles of a custom post type. I
I observed that if I have a custom post type called article, the links
I have created a custom post type of 'portfolio' and page with a template
I have created a custom post type named People. I have created a page
I have created a custom post type called banners and want to enable the
I have created a custom post type with an image gallery upload. Now I
When you goto http://www.classicandvintage.co.uk/car/rebecca/ it is using a custom post type of car that
I am trying to write a custom page type that gives a page a
Ok i have a custom post type on my blog called videos, where i
I have a Custom Post Type, 'ioni_codex' I am using built-in Wordpress category as

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.