Viewing 3 replies - 16 through 18 (of 18 total)
  • okay:

    <?php if (is_page('page-slug')) { ?>
    <?php query_posts( array(
    'cat' => '1',
    'posts_per_page' => 1,
    'paged' => ( get_query_var('paged') ? get_query_var('paged') : 1 ),));
    if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    
    <?php the_content();?>
    
    <?php previous_post_link('&laquo %link', '%title'); ?>
    
    <?php next_post_link('%link &raquo', '%title'); ?>
    
    <?php endwhile; ?>
    <?php
    endif;
    wp_reset_query(); ?>
    
    <?php } ?>

    tested and good, should only be styling issues to contend with, give it a go if you dare!

    Thread Starter TheAse3

    (@thease3)

    Thank you so much for your help! I really appreciate it! I am about to try this out. I will let you know how it goes.

    be sure to be careful where you put it, probably before the loop for now,
    so just before where it says:

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

    in your page.php template file.

    If you have issues with placement, post your entire page code in pastebin and give the link.

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘How do I add more than one thing to a page/post?’ is closed to new replies.