Sticky post on first page only
-
Hi everyone,
I am not very good at coding and running out of ideas. Urgently need help from the amazing WP community.
I have one sticky post on the homepage (TheStyle theme) and pagination plugin (wp_pagenavi) installed. The sticky post shows up on every page of the pagination but I want the sticky post to only show on the first page. The rest of the first page and subsequent pages would show recent posts as usual.
Found a solution on the thread below but when I put the code in index.php, problem still exists. So where should I put this code? or should I try something else? Thanks in advance. I am on localhost and unable to provide the URL.
Thread: https://wordpress.org/support/topic/two-loops-one-for-sticky-one-for-the-rest?replies=12
- The topic ‘Sticky post on first page only’ is closed to new replies.