Skip to content

Conversation

jsnmoon
Copy link
Contributor

@jsnmoon jsnmoon commented Sep 4, 2019

Changes proposed in this Pull Request:

This enables filtering search results by post types checkboxes.

Is this a new feature or does it add/remove features to an existing part of Jetpack?

Yes, this adds post type filtering to a yet unreleased Instant Search.

Testing instructions:

  • Add define( "JETPACK_SEARCH_PROTOTYPE", true ); to your wp-config.php.
  • Ensure that your site has the Jetpack Pro plan and has Jetpack Search enabled.
  • Add a Jetpack Search widget to the Search page sidebar.
  • Add a post type filter to the Jetpack Search widget.
  • Enter a query into a search widget. Alternatively, navigate to a search page like /?s=privacy.
  • Ensure that you can select a post type filter checkbox.

Proposed changelog entry for your changes:

None necessary.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a drive by-comment, but to save on the bundle size, it might make sense to rely on external @wordpress/url

@jsnmoon jsnmoon force-pushed the add/instant-search-filtered-results-handling branch from 520c330 to 017e3d5 Compare September 5, 2019 21:22
@jsnmoon jsnmoon requested review from gibrown and a team September 5, 2019 22:12
@jsnmoon jsnmoon added [Status] Needs Review This PR is ready for review. and removed [Status] In Progress labels Sep 5, 2019
@jsnmoon jsnmoon self-assigned this Sep 5, 2019
@jsnmoon jsnmoon marked this pull request as ready for review September 6, 2019 23:12
@jsnmoon jsnmoon requested a review from a team September 6, 2019 23:12
Copy link
Member

@gibrown gibrown left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WFM. The post type name from the main site is no longer working, but it also wasn't working when querying from other sites. So let's continue with this till we can work on that.

@jsnmoon jsnmoon merged commit 9208e5a into instant-search-master Sep 9, 2019
@jsnmoon jsnmoon deleted the add/instant-search-filtered-results-handling branch September 9, 2019 19:48
@matticbot matticbot added [Status] Needs Changelog and removed [Status] Needs Review This PR is ready for review. labels Sep 9, 2019
jsnmoon added a commit that referenced this pull request Oct 23, 2019
* Implement minimal search results and spelling correction (#13365)
* Add filtering display (#13371)
* Fix search result display bugs and make improvements (#13393)
* Add rudimentary support for filtering on post types (#13430)
* Add support for filtering on categories and tags (#13505)
* Add instant search sorting based on the URL (#13377)
* Add support for filtering on dates (#13545)
* Add custom taxonomy filtering (#13605)
* add sort widget (#13614)
* fix many theme incompatibilities (#13602)
* Add infinite scrolling (#13684)
* Add caching to the api requests (#13714)
* Clean up some design bugs/issues (#13721)
* Fix labels for post types when we have them. (#13750)
* Add localization and formatting of all dates (#13748)
* search from any page on the site (#13713)
* Hook up default options (inc. sort) (#13742)
* Add TrainTracks analytics (#13730)
* Create PostTypeIcon component (#13790)
* Upgrade to Preact 10 (#13794)
* Add comments component (#13797)
* Address review feedback
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Search For all things related to Search [Type] Feature Request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants