Offset Loop by 1 , Limit next loop to 1 (Most Recent) Post
-
04-11-2019 - |
سؤال
I have a loop that I would like to Offset by 1 so the most recent post is not displayed, and another loop where I only want 1 item which would be the most recent post.
These are the loops I tried: for both:
Offset Loop:
<?php query_posts('offset=1');
if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
and Most Recent Post Loop:
<?php query_posts('posts_per_page=1');
if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
The page doesnt load for me when I tried this, any ideas?
لا يوجد حل صحيح
لا تنتمي إلى wordpress.stackexchange