Hi I'm trying to make the first post article in the list different for the archive template. Basically they'd all be in order descending, but the first post in the list would be styled differently. Other people have said they've done it but the coding is much different and I don't know how to change the first post using the php in my theme.
I want the first post to show the thumbnail and the title larger than the rest. Here is the basic code I'm using. Thanks in advance for any help!
get_header(); ?>
<header class="archive-header">
<h1 class="archive-title"><?php
if (is_day()):
printf(__('Daily Archives: %s', 'outspoken'), get_the_date());
elseif (is_month()):
printf(__('Monthly Archives: %s', 'outspoken'), get_the_date(_x('F Y', 'monthly archives date format', 'outspoken')));
elseif (is_year()):
printf(__('Yearly Archives: %s', 'outspoken'), get_the_date(_x('Y', 'yearly archives date format', 'outspoken')));
else:
_e('Archives', 'outspoken');
endif;
?></h1>
</header><!-- .archive-header -->
<?php /* The loop */ ?>
<?php while (have_posts()): the_post(); ?>
<?php get_template_part('content', get_post_format()); ?>
<?php endwhile; ?>
<?php outspoken_paging_nav(); ?>
<?php get_template_part('content', 'none'); ?>
</div><!-- #content -->
get_template_part('content', get_post_format());
part of the code, most likely in the filecontent.php