WP_Query with sticky posts
-
I have a custom WP_Query and wanted to have sticky posts show up top. I got that happening by reading the docs, and putting something together. But not sure if its a correct way to do it.
But also is it normal to show the sticky posts on the same page in the default order below “x” amount of posts? It looks kind of funny if there is a sticky post up top then 3 posts down you see it in the correct order. I couldn’t figure out how to hide that if thats normal practice.
Here is my code – https://pastebin.com/p2atVa2p
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘WP_Query with sticky posts’ is closed to new replies.