Posts displaying but pages are not (2.3)
I’ve spent days trying to understand why this isn’t working and haven’t found any help in the forums. So hopefully I won’t get shot down for asking this!
Ever since upgrading to 2.3, I just cannot get Pages to work (site.com/mypage/). The site and the posts all work fine, but pages are blank.
1) The title of the page is displayed in the
2) No errors are shown
3) The page is blank. No content is shown, and it’s not hidden in
<!-- -->etc in the HTML. Have a look at this for example
I’ve checked the theme, which looks fine to me. And I’ve tried other themes too – no joy. Here’s the code for the page template:
<div id="content"> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <h2 id="post-<?php the_ID(); ?>"><?php the_title(); ?></h2> <div class="postspace2"> </div> <?php the_content('<p class="serif">Read the rest of this page »</p>'); ?> <?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?> <?php endwhile; endif; ?> <?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?> </div>
Any advice much appreciated.
Good idea Moshu. I tried removing all Amazon’s links…but still no joy. This is driving me insane!
That wasn’t an “idea” – I saw the bad code there in your sidebar 🙂
And NO, you did NOT remove it, just commented out…
OK, smart alec – you got me! But I’ve now removed it and it’s still not working. Any other ideas? (and this time I mean idea!)
Well, I just upgraded to 2.3.1 and my pages don’t show either and it is just plain text, nothing fancy. It proves to be the theme, the default theme (which uses the same link) works just fine……………………….
Only an idea, but have you tried adjusting the css? I had a similar problem where if the content was floated left against the sidebar the page was blank. Float:right fixed it. Senseless really, since the float:left worked in previous wordpress version.
- The topic ‘Posts displaying but pages are not (2.3)’ is closed to new replies.