• 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.

    Hix

Viewing 12 replies - 1 through 12 (of 12 total)
  • all menu links are pointing to /category/ archives;

    what is your permalink structure – http://codex.wordpress.org/Using_Permalinks

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

    Thread Starter Hix

    (@hix)

    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]

    Regards
    Hix

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

    Thread Starter Hix

    (@hix)

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

    Thread Starter Hix

    (@hix)

    ha, that was spookily timed 🙂

    Thread Starter Hix

    (@hix)

    Thread Starter Hix

    (@hix)

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

    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:

    http://codex.wordpress.org/Debugging_in_WordPress

    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

    Thread Starter Hix

    (@hix)

    added the following to wp-config.php

    also changed page.php so the loop now reads like
    this

    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

    Thread Starter Hix

    (@hix)

    forgot to add, virgin install so no activated plugins

    Thread Starter Hix

    (@hix)

    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

    Thread Starter Hix

    (@hix)

    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.