Incidentally, if I put that after the call for the_content() it works fine, though that doesn’t suit my layout.
I’ve been trying to insert widgets on my front page, with an old fashioned static sidebar on the blog part of the web site. But I’m stuck with a curious problem. I’ve inserted the following code into page.php in my template:
<?php global $post; if (get_option('page_on_front') == $post->ID): ?>
<ul>
<?php if (function_exists('dynamic_sidebar')) { dynamic_sidebar(); } ?>
</ul>
<?php endif; ?>
This code completely screws up the front page – the content for the page is replaced with a post from the blog. I can’t see any reason why the one particular post is displayed – no similar content, IDs, anything like that.
Can anyone help?