I have come across a strange problem when creating a new wordpress theme. So maybe because I have been at this all day but need to see if anyone can spot my error or see what is the problem.
I am trying to display 'featured' posts as per the name of the category and show only the one if this has been checked in the wp-admin section. Yet I am defining this within the code but it shows the latest post instead regardless of it being featured or not.
<?php
$args = array(
'post_type' => 'post',
'category_mame' => 'featured',
'posts_per_page' => 1
);
$the_query = new WP_Query( $args );
?>
<?php if ( have_posts() ) : while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
<div class="push_2 grid_10 omega clearfix">
<article>
<?php get_template_part( 'content', 'post' ); ?>
</article>
</div>
<?php endwhile; endif; ?>
</div>