WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Deadline – 4 specific posts on a template page.

[Resolved] Deadline – 4 specific posts on a template page.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Try reading the stuff in Template_Tags/query_posts – I think that may be what you need: specifically, about 2/3 down the page, this section:

    showposts=1 (you can also use showposts=3, or any number to display a limited number of posts

    vkaryl, thanks for the link. The ‘showposts’ actually refers to the number of posts to display.

    However, using an example further up the page, cutting and adding code, I got it to work. Here’s the the unformatted working loop for everyone:

    
     <?php query_posts('p=42'); ?>
    
     <?php while (have_posts()) : the_post(); ?>
    
     <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
    <?php the_content(__('(Read the article)')); ?>
     <?php endwhile; ?>
    

    [edit] Run this loop multipul times on the page with different ‘(‘p=ID’)’.

    Thanks very much. I thought my brain was going to explode.

    -rob

    Well, I’m glad I gave the right page, even if I didn’t quite get the right area from your description!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Deadline – 4 specific posts on a template page.’ is closed to new replies.