is_single get the lasted post
-
I am using a a little menu for the lasted post on my single pages. I just want to have the first excluded from this list, if the single page displays the lasted post.
I am currently doing this by hand:
<?php global $post; if (is_single('239')) { $posts = get_posts('numberposts=4&offset=1'); } else { $posts = get_posts('numberposts=4&offset=0'); }; foreach($posts as $post) : setup_postdata($post); ?>
Is there any way like
is_single(lastest_post)
???
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘is_single get the lasted post’ is closed to new replies.