• I’m using a script that displays my blog onto my own custom page. How do I get it to display only from my category called “front page news”? Instead it displays every post from any category.

    Thanks!

    \\*
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    <?php the_date(”,'<h2>’,'</h2>’); ?>

    <div class=”post” id=”post-<?php the_ID(); ?>”>
    <h3 class=”storytitle”>” rel=”bookmark”><?php the_title(); ?></h3>
    <div class=”meta”><?php _e(“Filed under:”); ?> <?php the_category(‘,’) ?> <?/*php the_author() */?><?/*php the_time() */?> <?php edit_post_link(__(‘Edit This’)); ?></div>

    <div class=”storycontent”>
    <?php the_content(__(‘(more…)’)); ?>
    *\\

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Make sure posts only display from certain category’ is closed to new replies.