WordPress.org

Forums

Problem with Contempt Theme displaying extra pages (6 posts)

  1. Matt Keefe
    Member
    Posted 7 years ago #

    Hi,

    I've recently just moved my blog to my own website, having previously hosted it on wordpress.com. The move was successful, and I installed the same theme as I used on wordpress.com, yet it displays in a faulty manner.

    You can see the faulty version here:

    http://thestarchamber.mattkeefe.com/

    In contrast to the correct version on my old wordpress.com site:

    http://thestarchamber.wordpress.com/

    In essence, what seems to be happening is that a link to every single page on the blog is appearing under the header, and thus throwing the layout all over the place, but I have no idea why it is doing this.

    Any suggestions?

    Thank you in advance,

    Matt

  2. kohaku
    Member
    Posted 7 years ago #

    I think the layout on wordpress.com only showed the parent pages in your navigation and not the children as well.

    You might try excluding the pages you don't want.

  3. Matt Keefe
    Member
    Posted 7 years ago #

    Yeah, this appears to be the case, but I can't locate where the setting or code is that specifies whether the pages shows parent pages only, or children as well.

    Any idea where it might be?

    Cheers,

    Matt

  4. Matt Keefe
    Member
    Posted 7 years ago #

    I've located the problem here - the header.php file needs the below line adding:

    <?php wp_list_pages('sort_column=menu_order&depth=1&title_li=')?>

    Cheers!

    Matt

  5. kohaku
    Member
    Posted 7 years ago #

    Then just figure out what pages need to be excluded and add them to that code.

  6. lurra
    Member
    Posted 6 years ago #

    Hi,

    i think i arrive a bit late, but i would like to fix the problem of the theme contempt version 2 (is the same of the first version)...

    where shall i place the code in the head.php, Matt Keefe? instead of what?

    may be there is a new version without this problems....

Topic Closed

This topic has been closed to new replies.

About this Topic