• Hot
  • Top
  • New
1
votes

You have ... votes left in this category for this week!

Allow searching of multiple post types at once

Dave Hilditch shared this feature

July 2, 2020

WordPress makes use of search results templates, for example – product searches return results in a grid whereas posts typically get returned in a list.

This feature request is to provide the ability to search multiple post types at once.

Two features will be developed to achieve this:

1. Allow user to choose search results template for specific search widget and that one template will be used for all combined search results. This may look a little odd if you have posts being returned using the product search results as posts don’t have a price etc.

2. Or return search results with each template on a single page. e.g. if posts and products are selected to be searched in a widget then on results page:

150 articles found matching search string
(then show top X articles using posts template)

120 products found matching search string
(then show top X products using products template)

I still have questions in my mind about how pagination would then work – probably if they hit show more, or use pagination in the articles template then it would move to a page just showing page 2 of articles (and no products any longer). Similarly, if they clicked page 2 on the products template, it would then move to page 2 only using the products template and only showing products.

The browser back button would return the user back to the combined search results page, but if they’re on page 2 of the articles and they use the pagination button to view page 1, it would still just view page 1 of articles only (not combined).

Looking for feedback from users on this so I get it right.

2 Comments

  1. Zotezo Com E.
    July 2, 2020 @ 1:06 pm

    I need these features…

    Reply

    • Dave H.
      July 2, 2020 @ 1:31 pm

      Ok – well currently you can do it through the Super Speedy Search widget, BUT it will use your default search results template so results may look ugly.

      Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

We use cookies

We use cookies for various things on our site, including our on-site chat bubble (if you use it), our comment forms (if you use them) and for session handling (if you log in).

Other than that, we use cookies to identify where traffic came from to help us understand which traffic turns into sales, we use a cookie for Google Analytics traffic analysis and we use a cookie to customise adverts for our own products we think you'll be interested in.

You can read more detail in our privacy policy page. Please click 'Accept' or 'Decline' to continue.