Sticky with WP_Query
-
The plugin is exactly what I’m looking for, however I’ve created a plugin that manually generates the WordPress loops so I can create a customizable shortcode on a single page.
Looking at the WP_Query class, the default behavior is sticky entries will be pushed to the front and you have to ignore_sticky_posts to turn this off. Running a basic loop with a custom post type, the sticky posts are ignored and it’s looped by date.
Should this plugin utilize the same behavior or do I need to run two loops, one only with sticky and the second excluding sticky custom posts?
Thanks for any insight
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Sticky with WP_Query’ is closed to new replies.