March 5, 200917 yr Hey Does anyone know how to list posts in a certain category on a page in WordPress? Thanks.
March 5, 200917 yr Hey Meshach, Have a look at the codex, in particular 'Conditional Tags' and if(is_page) etc alongside wp_list_categories() *has anybody else noticed that the codex has changed? I can't find anything anymore *
March 5, 200917 yr Author Hey Meshach,Have a look at the codex, in particular 'Conditional Tags' and if(is_page) etc alongside wp_list_categories() *has anybody else noticed that the codex has changed? I can't find anything anymore * Thanks for the link! Hey meshach take a look at page_links_to. Thanks Thomas.
March 18, 200917 yr Hey dude, Try this on for size... // 9 = Amount of posts to display, if you remove showposts=9 it will show all. // 5 = Your category number which can be found from your admin or in your DB. <?php query_posts('showposts=9&cat=5'); ?> <?php while (have_posts()) : the_post(); ?> <h1><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"></h1> <?php the_excerpt(); ?> <p><a href="<?php the_permalink() ?>" rel="bookmark">">Read More</a></p> <p><?php the_author() ?></p> <p>Category: <?php the_category(', ') ?></p> <p>Tags: <?php the_tags(' ', ', ', ' '); ?></p> <p><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?><!-- | <?php trackback_rdf(); ?></p> <?php endwhile; ?> Hope that helps.
Create an account or sign in to comment