• Is there a way to enable sticky post to stick to the top of the feed to resemble the native WP functionality?

    I don’t see any documentation on the topic.

    Thanks.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Good question. I’d like to know this as well.

    You could use this plugin in combination with List Category Posts: https://www.ads-software.com/plugins/category-sticky-posts/#installation

    Not a very elegant solution, but it works.

    Plugin Contributor zymeth25

    (@zymeth25)

    The LCP plugin follows the native WordPress functionality: when querying specific categories or taxonomies post stickiness is ignored. However, it is not ignored if you just use [catlist] or some non-taxonomy parameters.

    Maybe in the future we could add an option where users can choose to include sticky post but as of now the plugin just follows the behaviour of WP_Query.

    Hope this answers your questin, even though it doesn’t solve the problem.

    Thread Starter nhwp

    (@nhwp)

    We are indeed using the [catlist] shortcode, but we are using the name=” parameter to pull a specific category. Does that disable the sticky posts function then?

    Is there a way to use a hook perhaps to adjust the wp_query to enable sticky posts globally?

    Thanks in advance.

    Plugin Contributor zymeth25

    (@zymeth25)

    Does that disable the sticky posts function then?

    Yes, it still fetches the sticky post but ignores its “stickiness” and applies regular ordering (default is by date).

    Is there a way to use a hook perhaps to adjust the wp_query to enable sticky posts globally?

    As far as I know there are no built in WP hooks to configure this. It requires adding custom code. I will bookmark this as a feature request and if enough users are interested we can find a way to include sticky post customization in the LCP plugin. No promises as to when that will happen though ??

    Thread Starter nhwp

    (@nhwp)

    This is a pretty critical feature for us. We’ve moved several municipal clients sites to your plugin because of the easy of customization, etc. But we’re really needing the sticky post feature enabled. I would hate to have to move to a different plugin just for this feature.

    Thanks for considering this in your feature requests.

    Plugin Contributor zymeth25

    (@zymeth25)

    So you just need to be able to set a parameter that will add a sticky post belonging to a category you have chosen with name? WP_Query, when not using any category parameters, prepends sticky posts and ignores the numberposts parameter, so if you want to display 10 posts it will display 11. Is this what you want or would you rather it still displayed 10 posts?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Enable Sticky Post Promoting?’ is closed to new replies.