Hi there, I have a featured post on the home page, and would like it not to show up on other pages. HOWEVER, I don’t want to omit its category since older posts in that category should be viewable.
I have got this working with multiple loops, however the pagination is off. The page where it skips the featured post only has 9 other posts. I am trying to make a new query to omit that post, but there doesn’t seem to be parameter to do so.
$wp_query->query('p=-' . $featuredPostID . '&paged='.$paged);
=- doesn’t work for this attribute as it does for cat= – to omit categories.
How can I do this?
- The topic ‘Omitting one post with pagination’ is closed to new replies.