I want make custom recent post. In standard condition, the widget just show every newest post. But how to make recent post with condition, 4 newest post is disappear and start showing post from 5th posts.
illustration:
____________ newest post | D
____________ 2nd new post | D
____________ 3rd new post | D
____________ 4th new post | D
____________ 5th new post | SS
Note:
D: Disappear | SS: Start showing
Thanks in advance.
Use the offset parameter of WP_Query
$posts = get_posts( array( 'posts_per_page' => 5, 'offset' => 4 ) );
This returns 5 posts after the 4 newest posts.