Forum Moderators: coopster
<?php if ($loopcounter == 1 and is_home()) : ?>
<?php the_content(); ?>
<?php else : ?>
<div class="articleimagediv">
<?php if (function_exists('the_thumb')) { the_thumb('altappend=first_&width=100&height=100&category=1&offset=0&limit=1&myclassimg=articleimage&link=p'); } ?>
</div>
<?php the_excerpt() ?>
<?php endif; ?>
That is causing parse errors. How would I make it work?
elseif(function_exists('the_thumb')) {
the_thumb('altappend=first_&width=100&height=100&category=1&offset=0&limit=1&myclassimg=articleimage&link=p');
}//elseif
echo("</div>");
the_excerpt();
?>
It's not really clear on what you want to do. Can you give some pseudo code on your if statements?
I'm not sure about how to do pseudocode... hope this makes sense
IF is first post and is home page
- display the content
ELSE
- <div class='articleimagediv'>
- display thumbnail created by plugin
- </div>
- display the excerpt
ENDIF
We can remove the if for is_home, if necessary
[edited by: braiiins at 12:53 am (utc) on Oct. 28, 2008]