• 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)
  • Plugin Author Markus Wiesenhofer

    (@markusfroehlich)

    Hello sgarcia513,
    my plugin have to use the wordpress filter “the_posts” to enable the sticky functionality in custom post types.

    You can disable this filter in the plugin options.

    Best regards
    Markus

    Plugin Author Markus Wiesenhofer

    (@markusfroehlich)

    Hello,
    The new version is out now,
    please go into the settings and enable the feature on each archive or category page where every you want.

    Best regards
    Markus

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Sticky with WP_Query’ is closed to new replies.