“Make this post sticky” without function?
-
Hello,
I am running the current version of Woodmart with all available patches installed. For testing purposes I switched from child theme to main theme and deactivated all plugins except “Woodmart Core” on the development environment.
But the “Make this post sticky” option has no effect on the order of the posts on category archive page.
https://www.wpbeginner.com/beginners-guide/how-to-make-sticky-posts-in-wordpress/
Hello,
Could you please check how it works with some default WordPress themes like TwentyTwenty or WooCommerce Storefront to understand is it our theme issue or not?
Kind Regards
Hello,
ok, I forgot to check this before opening this thread.
With default theme the behaviour was the same.
Sticky does only work on homepage or blog post main archive page, even though I don’t understand the logic.
With this PHP snippet it does also work on category archive pages:
https://stackoverflow.com/a/52651341
Hello,
Ok, so you mean that you have solved the issue by using the code from that article?
Thanks for your time and have a great day.
Kind Regards
Yes, that’s correct. And it was/is a default WordPress behaviour, not Woodmart.
Hello,
Great! In case you need any additional help, I’d be more than happy to assist you.
Wish you all the best.
Kind Regards
The topic ‘“Make this post sticky” without function?’ is closed to new replies.