is_home issue with the_content display
-
i am pretty new in PHP and WordPress coding (main area so far css, xml and html), but now i need a special homepage post display (in my case (p=51). i have the following code integrated in index-php, but only the title gets displayed. After 24 hours checking posts and google reults, i hope you can help me.
<?php if (is_home()) {
query_posts(‘p=51’);
?><div class=”post” id=”post-<?php the_ID(); ?>”>
<h3 id=”post-header”><?php the_title(); ?></h3><div class=”entry”>
<?php the_content(); ?>
</div><?php if ($post->post_excerpt != ”) { ?>
<div class=”excerpt”>
<?php echo $post->post_excerpt; ?>
</div>
<?php } ?></div>
<?php } ?>Why is only the the_title() getting displayed, but not the_content()?
Any hint/idea?I know this is pretty low level, and i don’t want to annoy anybody, but i am really stuck with this issues.
- The topic ‘is_home issue with the_content display’ is closed to new replies.