Hi my name is Antony and this is my first question. I’m currently making a worpress theme. And in the loop I want to have two “post-entry” divs one that’s small that goes next to my post thumb, and one for without the thumb.
I know that I need to do a
<div class="post">
<?php if ( has_post_thumbnail()) { ?><div class="post-thumb"> <?php the_post_thumbnail(); ?> </div> <div class="post-entry-1"> <? } else { ?><div class="post-entry-2"> <?php } ?>
Any help will be greatly appreciated, as I have been stuck on this for a few days now.
For reference here are the available Template Tags to place in your LOOP:
http://codex.wordpress.org/Template_Tags
It sounds like you need to use the
the_excerpt(): http://codex.wordpress.org/Function_Reference/the_excerpt
And the_content(): http://codex.wordpress.org/Function_Reference/the_content
Perhaps you need to look over the loop: