Home Forums WoodMart support forum “Make this post sticky” without function?

“Make this post sticky” without function?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #477194

    Thora
    Participant

    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/

    #477211

    Luke Nielsen
    Keymaster

    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

    #477526

    Thora
    Participant

    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

    #477598

    Luke Nielsen
    Keymaster

    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

    #477626

    Thora
    Participant

    Yes, that’s correct. And it was/is a default WordPress behaviour, not Woodmart.

    #477647

    Luke Nielsen
    Keymaster

    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

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘“Make this post sticky” without function?’ is closed to new replies.