WordPress.org

Ready to get started?Download WordPress

Forums

Display news from a single in one of the WP-Pages Templates (1 post)

  1. Phunky
    Member
    Posted 9 years ago #

    How do i go about showing news from one of my cats in one of the WP 1.5 pages?

    I tryed using...

    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    <?php if (in_category('6') ) { ?>
    <div class="post">
    <h1 id="post-<?php the_ID(); ?>">" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></h1>
    <h2 class="txtLite">Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit','',' | '); ?><?php the_author() ?></h2>
    <div class="entry">
    <?php the_content('Read the rest of this entry »'); ?>
    </div>
    </div>
    <?php } ?>
    <?php endif; ?>

    But that didnt even display anything....

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.