How to display the first 5 sticky posts in WP?
-
I′m trying to display the first 5 sticky posts in WP, to create a slider. If there are no sticky post set, i want to include a file showing some dummies.
The problem with the code i′m working is, it doesn′t distinguish the sticky posts from the normal ones. It′s broken. Can somebody lend a hand?
Here′s the code:
https://pastebin.com/sWfgH26Y
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to display the first 5 sticky posts in WP?’ is closed to new replies.