looking for a little php help

0 replies
I am hoping that someone can take a look at this real fast and spot where my issue is.

I am setting up a wordpress page to pull posts from a certain category and display them on this page. I would like it to display the Title, and an excerpt of the posts with a link to read more.

What I have was taken from another site that works in a similar fashion, except it only displays Headlines. Any assistance would be wonderful:

<?php
/*
Template Name: Articles
*/
?>

<?php get_header(); ?>

<div id="content">

<div id="contentleft">

<h1>Email Marketing Industry News</h1>

<?php
$temp = $wp_query;
$wp_query= null;
$wp_query = new WP_Query();
$wp_query->query("cat=6");
if ($wp_query->have_posts()) : while ($wp_query->have_posts()) : $wp_query->the_post();
global $more; $more = 0;
?>
<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a>
<!--<?php the_content(__('Read more'));?><div style="clear:both;"></div>-->

<?php endwhile; else: ?>

<p><?php _e('Sorry, no posts matched your criteria.'); ?></p><?php endif; ?>
<p><?php posts_nav_link(' — ', __('&laquo; Previous Page'), __('Next Page &raquo;')); ?></p>
<?php $wp_query = null; $wp_query = $temp; ?>
</div>

</div>
<?php get_sidebar(); ?>

</div>
#php

Trending Topics