Forums

Can't get get_posts() offset to work for the life of me! (2 posts)

  1. bfeely
    Member
    Posted 1 year ago #

    Hello!

    I'm just stuck and confused right now, hopefully someone can point out something I'm missing. All I want to do is make the second (.side) feed of posts offset by two posts. I really have no idea why it isn't working. If anyone can help it would be greatly appreciated! Thank you!

    <?php query_posts();
    				  	if (have_posts()) : ?><?php while (have_posts()) : the_post(); ?>
                    	<div class="post"><!--post-->
                            <div class="category"><?php the_category(' '); ?> <?php the_date() ?></div>
                            <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Read more on <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
                            <hr />
                            <p>
                                <?php the_content_rss('', TRUE, '', 140); ?>
                            </p>
                		</div><!--post-->
                        <?php endwhile; ?><?php endif; ?>
    
                        <div class="side">
                        	<h2><?php echo $Side_section ?></h2>
              <!--Offset here -->          	<?php get_posts('numberposts=2&offset=2');
    				  		if (have_posts()) : ?><?php while (have_posts()) : the_post(); ?>
    	<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
  2. alchymyth
    The Sweeper
    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Topic