Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

AgentPress Listings Search widget select fields lose selection on search results page #24

Open
nickcernis opened this issue Jul 26, 2015 · 0 comments
Labels

Comments

@nickcernis
Copy link
Contributor

As reported on WP.org, the selected taxonomies are lost when viewing search results such as this:

http://demo.studiopress.com/agentpress/?s=&post_type=listing&bedrooms=4-bedrooms

Observed behaviour: No value is selected in the “Bedrooms” select field.
Expected behaviour: “4 bedrooms” (the originally selected query) is preselected in the “Bedrooms” select field.

Adding global $wp_query; near the top of the widget() function in agentpress-listings/includes/class-property-search-widget.php fixes this in my tests.

@nickcernis nickcernis added the bug label Jul 26, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant