How to display max. 2 sticky posts when posts_per_page is 3?
Edit 2: Updated Code to account for “Maybe there are no stickied posts” 😉 Edit: I did a boo-boo with the number of posts. Fixed, should work now as intended. You can do this by using two queries. <?php //First, you get all the sticky posts $stickies = get_option(‘sticky_posts’,array()); //then, get max 2 of them … Read more