Support » Plugins » Just Show one category in WP 1.5

  • Hi,

    i was managing to have just one category of posts show up on a page in my site previously using mookitty’s plugin, this is not compatable with WP 1.5, does anybody have a way of doing this

    i have trawlled the WP forum and have not yet found a definative answer on how to do this, preferably without a plugin..

    thanks in advance

    n

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter natasp

    (@natasp)

    hi podz

    yes i’ve looked at that, i tried to add some of the code from there but it does not work for me

    the loop code in my WP version (1.5) looks like this


    <!--loop starts here-->

    <?php if (have_posts()) : ?>

    <?php while (have_posts()) : the_post(); ?>

    <div class="post" id="post-<?php the_ID(); ?>">

    <h2><a>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>

    <small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small>

    <p class="postmetadata">Posted in <?php the_category(', ') ?> <strong>|</strong> <?php edit_post_link('Edit','','<strong>|</strong>'); ?>

    <div class="entry">
    <?php the_content('Read the rest of this entry �'); ?>
    </div>

    </div>

    <?php endwhile; ?>

    <div class="navigation">
    <div class="alignleft"><?php next_posts_link('� Previous Entries') ?></div>

    <div class="alignright"><?php previous_posts_link('Next Entries �') ?></div>
    </div>

    <?php else : ?>

    <h2 class="center">Not Found</h2>
    <p class="center">Sorry, but you are looking for something that isn't here.
    <?php include (TEMPLATEPATH . "/searchform.php"); ?>

    <?php endif; ?>

    <!--loop ends here-->

    the code in the codex’s loop starts like this:

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

    i’m not sure what i’m supposed to add / romove / replace..??

    cheers

    nat

    Thread Starter natasp

    (@natasp)

    any ideas..??

    anybody, all help greatly appreciated..

    Thread Starter natasp

    (@natasp)

    like this:

    http://wordpress.org/support/topic/29766

    query_post is your friend

    n

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Just Show one category in WP 1.5’ is closed to new replies.