Support » Themes and Templates » Modified 2011 theme all fine except pages showing no content

  • Hi There,

    I’m just starting out with modifying themes. I’ve created a site Here fora friend.
    She wanted it to look like a psd i was given.
    I’ve changed the css and the templates for twentyeleven to reflect the layout i was given. It all seems to work pretty well apart from the static pages aren’t showing any content i.e like this
    Posts are fine and the actual pages are rendering with no errors [debug on, on local version]
    I just cant figure this out.
    I did change functions.php but only to reflect my nav menu.
    Could anyone advise as I’ve hit a wall I cant climb over.

    Many thanks for taking the time to look at this.


Viewing 12 replies - 1 through 12 (of 12 total)
  • Michael


    Forum Moderator

    all menu links are pointing to /category/ archives;

    what is your permalink structure –

    what pages would you expect to see?
    is there any content in the pages?

    Hi alchymyth,

    Currently the links are pointing to post categories. the second link Here
    is representative of the page I am referring to . I have no problems with the link structure as I can set this to be post categories or pages. My issue is the actual page in this link.

    Everything renders apart from the content of the page [which is visible in the database]




    Forum Moderator

    what is the code of page.php and (possibly) content-page.php?

    I’ve copied my page.php into pastebin page.php
    It may give someone an insight into what is happening.

    ha, that was spookily timed 🙂

    and for good measure here is functions.php the change I made is line 381 to display and class my own menu



    Forum Moderator

    both templates look ok; it just seems that the loop is not triggered.

    temporarily add this to page.php:

    <?php var_dump( $wp_query ); ?>

    and see what the output is.

    what about plugins?

    try to deactivate all plugins, to see if that changes the empty pages.
    you can then reactivate one plugin after the other…

    also, try to activate DEBUG to possibly see some error messages:

    also weird, if I add /?page_id=1 after the url, which should get me to the first page, it actually redirects to the first post /?p=1

    added the following to wp-config.php

    also changed page.php so the loop now reads like

    page renders fine, with no errors shown.

    Interestingly enough, there is no error log in wp-content.
    Though i suppose if it’s not throwing any why would it log

    Cheers for all your help btw, appreciated

    forgot to add, virgin install so no activated plugins

    anyone got any ideas on this? Debugging shows nothing wrong, the page template uses the same loop as twentyeleven, yet I still get static
    pages rendered with everything except the main content

    not sure what was wrong, but changing themes, then deleting page.php and content-page.php and redoing them seems to have done the trick.
    If you can see any errors at Claireabell Creations Please let me know. For now – I’m going to the pub 🙂

    Thanks for your help and guidance alchymyth

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Modified 2011 theme all fine except pages showing no content’ is closed to new replies.