Opened 5 months ago
Closed 4 months ago
#7815 closed defect (bug) (fixed)
Photo Directory: Can't combine search and taxonomy filtering
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | Photo Directory | Keywords: | has-patch |
Cc: |
Description
The new design will enable searching combined with the taxonomy filters, for example on the Theme Directory you can search for "school" themes with the accessibility-ready tag. This is native functionality in core, but isn't working on the Photo Directory.
For example, this photo has "vibrant" in the alt text, and is tagged with the color blue. But nothing appears in the result here: https://wordpress.org/photos/search/vibrant/?photo_color=blue
Locally, I see an error "Not unique table/alias: 'wp_term_relationships'". It appears the customization for search results is conflicting with the core behavior.
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
7815.diff adds table aliases for the joined tables, which in combination with the patch on #7814 makes the search work as expected and prevents the table collisions in my local env. But like #7814, this isn't working on my sandbox.