Forums Forums Search & Filter Pro Sticky posts in search results

Tagged: ,

Viewing 7 posts - 1 through 7 (of 7 total)
  • Anonymous
    #108492

    Hello,
    I use Search and Filter PRO. I display search results using shortcode – search and filter is in sidebar with ajax activated. When I don’t filter or search through results, my page displays all the results.
    Is there a way to display some posts higher than others? I have posts that should be featured on top.
    I have Relevanssi plugin.
    I would be grateful for any tips or solutions. Thank you!

    Trevor
    #108503

    Are the posts in WordPress marked as ‘sticky’? AFAIK the default behavior for our plugin is that sticky posts come first. Did you try this and did it work or not?

    OTOH, if you have a custom field with a boolean field ‘Featured’, you could use our sort order on that field, but beware! The field MUST have a default value for new posts, and a value must be entered for all existing posts. When you make a sort order, any post with no value in the field you sort by will be excluded from the results.

    Anonymous
    #109561

    Hello,
    I recently asked you about adding sticky posts to search results.
    I marked selected posts as sticky, but they show even when they don’t match the filtering (I filter through title, categories, tags, and text, I also use relevanssi plugin).

    Thank you one more time for your help.

    Trevor
    #109606

    I merged these two posts as they are related. Which option that I gave did you go for, Sticky or Featured?

    I think Sticky will do exactly as you describe, but Featured may do as you want.

    Anonymous
    #109652

    You’re right, I marked them as sticky.
    Could you please guide me how to make my posts featured?
    Should I do it with additional plugin? If so, could you recommend any? I use Custom Post Type UI for custom post types, taxonomies etc.

    I also tried something different:
    I added custom field to my post with numeric value (featured_1).

    Then EDIT SEARCH FORM -> SETTINGS & DEFAULTS -> POSTS ->

    Sticky Posts: Default Order:
    Choose Meta Key: featurd_1 (numerical)
    Secondary Sort Order: Title

    I thought it will display featured, then sort the rest by title. Is it possible? Thank you for your time.

    Trevor
    #109655

    This post is much the same question (with the answer). The private replies are not important. Read it all before you do it!

    https://support.searchandfilter.com/forums/topic/featured-posts/

    Anonymous
    #109658

    IT WORKS! Thank you Trevor.
    Best regards!

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