Hi i am currently building upon a theme that i have build previously for my blog. The following code is to point to the latest post (the featured post). As this will have a different styling than all the other posts. However. I would like to filter out the post-format: links using the WP-Query i have defined within the loop since it brings me a lot more flexibility. How would i go around doin that?
<?php $featured = new WP_Query(); $featured->query('showposts=1'); ?> <?php while ($featured->have_posts()) : $featured->the_post(); ?> <h2><a href="<?php the_permalink(); ?>" rel="bookmark" class="maintitle"><?php the_title(); ?></a></h2> <?php the_excerpt(); ?> <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" class="btn">Read more »</a>
Best Regards Lucas