Thanks… I am not that good at deciphering php and where to put it.
I would like the first post on the home page to have double the width of the other posts and also a larger image.
This is how my home page looks:
<?php get_header() ?>
NEW CODE HERE?
<?php $i = 1; ?>
<div id="container">
<div id="content">
<div id="nav-above" class="navigation">
<div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">«</span> Older posts', 'sandbox' )) ?></div>
<div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">»</span>', 'sandbox' )) ?></div>
</div>
<h1 style="margin:0px; padding:0px">Love alternative photographic processes?</h1>
<p style="margin-top:0px; padding-top:0px">You've come to the right place. Enjoy the latest articles.</p>
<?php
while ( have_posts() ) : the_post() ?>
<div class="thumbnail">
<h2 style="margin:0px; padding:0px">
<?php
$category = get_the_category();
echo $category[0]->cat_name;
?>
</h2>
<div id="post-<?php the_ID() ?>" class="<?php sandbox_post_class() ?>">
<h3 class="entry-title" style="margin-top:0px; padding-top:0px">
<div class="floatright" style="padding:0px">
<?php the_post_thumbnail( 'thumbnail' ); ?>
</div>
<a href="<?php the_permalink() ?>" title="<?php printf( __('Permalink to %s', 'sandbox'), the_title_attribute('echo=0') ) ?>" rel="bookmark"><?php the_title() ?></a></h3>
<?php
$myExcerpt = get_the_excerpt();
if ($myExcerpt != '') {
// Some string manipulation performed
}
echo $myExcerpt; // Outputs the processed value to the page
?>
</div></div><!-- .post -->
<?php comments_template() ?>
NEW CODE HERE?
<?php $i++; ?>
<?php endwhile; ?>
<div id="nav-below" class="navigation">
<div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">«</span> Older posts', 'sandbox' )) ?></div>
<div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">»</span>', 'sandbox' )) ?></div>
</div>
</div><!-- #content -->
</div><!-- #container -->
<?php get_sidebar() ?>
<?php get_footer() ?>
I found the place for the first two code pieces, but where would i put this?
<?php if ( 1 == $i ) { $firstclass="firstpost"; } ?>
I can’t find “the_loop” in the code…