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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T06:25:06+00:00 2026-05-29T06:25:06+00:00

I am currently developing a custom WordPress theme and ran into a problem. I

  • 0

I am currently developing a custom WordPress theme and ran into a problem.

I have created a custom template that displays it’s subpages as a category-overview. It’s for products, and the structure is as follows:

Home (page id #3)
Products (page id #4)
    Category 1 (page id#6, child of page #4)
    Category 2 (page id#7, child of page #4) 
    Category 3 (page id#8, child of page #4)
    …

Page #4 (the products page) displays an overview of the categories. Now, the front page should also display an overview of the categories, just styled differently (also using different markup, so CSS-only won’t do the job).

I already modified the template to react to being called on the front page. The detection is working and if I define the products page as the home page, it looks like intended.

But there is one problem: Now in the navigation (which is a custom menu), the “Products” item links to the home page, and such is not working as the category overview. It seems wordpress overwrites the role of the page to be the home page even though I need it to be an instance of it’s own, with the corresponding url of http://www.client.com/products.

So, if the products page is also used as the front page my navigation structure is being messed up and I cannot get to http://www.client.com/products/ anymore.

Using another page with the same template for the front page will not work, because it will not have the subpages I’m querying.

What I want:

Home (page id #4) >> http://www.client.com/, overview style #1
Products (page id #4) >> http://www.client.com/products/, overview style #2
    Category 1 (page id#6, child of page #4)
    Category 2 (page id#7, child of page #4) 
    Category 3 (page id#8, child of page #4)
    …

What I have:

Home (page id #4) >> http://www.client.com/, category overview style #1
Products (page id #4) >> http://www.client.com/, category overview style #1
    Category 1 (page id#6, child of page #4)
    Category 2 (page id#7, child of page #4) 
    Category 3 (page id#8, child of page #4)
    …

Any ideas?

  • 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-05-29T06:25:07+00:00Added an answer on May 29, 2026 at 6:25 am

    It seems that the problem can’t be solved this way, but I found a workaround.

    • Products (page id #4) is defined as “posts page” and kept in the navigation.
    • Home is a page on it’s own (page id #9)

    Both pages, Products & Home, use a custom template ‘Products’, which queries against the posts page:

    $pages = get_pages( array('child_of' => get_option('page_for_posts')) );
    

    It’s not beautiful, but it works.

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

Sidebar

Related Questions

Currently developing a PHP framework and have ran into my first problem. I need
I am currently developing a theme for a homepage but ran into a few
I have an Android app that I am currently developing. I have created icons
I'm currently developing a custom control that derives from CStatic MFC class (Smart Device
I'm currently developing a custom theme for a client of mine. What I want
I'm currently developing a custom control and realize that my code is being run
I'm currently developing a website on Wordpress that requires sort of like a fluid
I'm currently developing an app that has a camera functionality, with a custom camera
I'm currently developing a solution and have designed it in a way such that
SO. I'm working with the OCS UCCAPI, developing a custom OCS client. I'm currently

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.