Support » Fixing WordPress » Sub Pages Not Displaying – Am I Missing Something ?

  • Hi Everyone

    I am using WordPress 2.8.5. I am using the Blue Grace theme 3.1.

    I made a page called Articles. Now i wish to display sub pages to this depending on the article.

    So i go back into pages and i make a new page called Film History and select it to be a sub category of Articles. I save it and clear cache and go to the site and all that shows up when i click the page link articles is articles and nothing else in it.

    Am i missing something here ? Am i supposed to add a link to the sub category page within Articles ?

    I thought the whole idea was that i could have sub pages listed within the Article page but nothing is showing up. I don’t want to edit code to get this working and i’m baffled as to why it doesn’t work since i can actually manually input the new sub category page into the browser and it shows up. That means i could add a link to the new article but it won’t show up in recent posts if i do that.

    Is it supposed to automatically display a page number or sub category when you add one to the parent page or are you expected to add a link to it manually ?

    Help appreciated. Site not live thus no link provided to it.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter mal22

    (@mal22)

    Do i have to add that code to the post.php file ?

    I’m confused as i thought WordPress could do this without the need to edit files.

    The new page i created shows up when i manually type the link into WordPress but does not show up when i click the Parent category page.

    Is this an issue with the theme or WordPress itself or am i not following some rule here ?

    If i have to add some code to the post.php file where do i add it as it’s got a lot of code already in it.

    Thread Starter mal22

    (@mal22)

    Re-reading the page it says this.

    Pages are usually ordered alphabetically, but you can put a number above to change the order pages appear in. (We know this is a little janky, it’ll be better in future releases.

    Now i have the Parent category called Articles set as 1

    The new page which is linked to articles is set as 2.

    You might want to read the article, Pages, and create a Page Template for that code.

    Thread Starter mal22

    (@mal22)

    I read that article about five times now.

    I still am under the impression this should work straight out the box without having to make page templates.

    I have the sidebar widget for pages disabled and only use the top menu. I might try changing that since the article says it can control the showing of sub-pages.

    Thread Starter mal22

    (@mal22)

    I just added Multi-pages 1 to the sidebar and the sub pages do show up when using the sidebar widget. They just don’t show in the header menu.

    I’ll look at some of those plugins you posted and see if i can figure out how to get the top menu header showing the sub pages.

    Still it’s good to know that i can at least use a sidebar widget to display them even though that’s not ideal.

    They just don’t show in the header menu.

    The template tag, wp_list_pages(), is typically used by theme designers to display Pages in a nav bar. With the help of the Template Hierarchy article, determine what Template is displaying your Pages (probably header.php), then look for wp_list_pages and see if an exclude=x or include=x is limiting the Pages displayed.

    Thread Starter mal22

    (@mal22)

    I did try a different template and it worked and displayed the sub pages so that does tend to suggest it’s a theme issue. I do like this theme though so will have to try and figure out how to get it working.

    I’ll take a look in the header.php file for the Blue Grace theme and see if i can spot anything like you mention.

    Ok i looked and i see this in the header.php file.

    <?php wp_list_pages(‘sort_column=menu_order&hierarchical=0&title_li=’); ?>

    I don’t know what to do to edit that to get the sub pages. Can you advise ?

    The answer is in the link I showed above, wp_list_pages()

    hierarchical=1

    Thread Starter mal22

    (@mal22)

    I just tried 1 and a few other numbers and nothing is happening. Just the main parent category showing. The sidebar shows the sub categories but not the header menu.

    I think i’ll try contacting the theme owner through their website contact address.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Sub Pages Not Displaying – Am I Missing Something ?’ is closed to new replies.