Forum Replies Created
- localroutesParticipant4 years, 6 months ago in reply to: Add filter for additional html in settings #14474
Hello,
have you had a chance to take a look?
localroutesParticipant4 years, 6 months ago in reply to: Add filter for additional html in settings #14428Hello,
I have added 2 filters
Purpose:
Add additional markup for includung fields in custom search
File: wpsolr/core/dashboard/dashboard_settings.inc.php
Filter added:
Line no: 742
echo apply_filters(“wpsolr_content_after_label”, ”, $selected_val);Screenshot:
https://prntscr.com/pe8efwPurpose:
Add additional field information on the search results page and in a map like latitude and custom fields.
File: wpsolr/core/classes/engines/class-wpsolr-abstractsearchclient.php
Filter added:
Line no: 2903
$data_result[‘additional_fields’] = apply_filters(‘wpsolr_filter_solr_results_additional_fields’, array(), $document, $wpsolr_query);Screenshot:
https://prntscr.com/pe8g7h
https://prntscr.com/pe8fsu
https://prntscr.com/pe8f89Link to files
https://drive.google.com/file/d/1jrIIRHeKqW2oAi4BXzTLCIgSNWpMTkuc/view?usp=sharing
localroutesParticipant4 years, 7 months ago in reply to: Add filter for additional html in settings #14351What I want is to use the UI you have made but add a couple options.
If I don’t have a filter then I will have to rebuild the whole UI or modify core to add the filter myself as in the example above.
localroutesParticipant4 years, 7 months ago in reply to: Add filter for additional html in settings #14347localroutesParticipant4 years, 7 months ago in reply to: Add filter for additional html in settings #14346The UI is quite complex and I would like to configure multiple searches
Instead of recreating the whole UI for integration with some custom fields
the filter makes it possible to add another setting for filters
A filter for sort and search would also be helpful
localroutesParticipant4 years, 7 months ago in reply to: Urgent – Cannot activate – Cannot choose region in OpenSolr #13945Screenshot of the field that will not populate:
https://prnt.sc/p4hscg