Displaying Selected Facets (above results or in HTML title)
- mcl7Participant3 years, 9 months ago #23811
I am coming back around to this to post this separately from a pervious post:
Is there documentation for displaying selected facets above the search results and also in the HTML title?
Here is the code you recommended:
add_action( ‘after_setup_theme’, function () {
add_filter( wpsolr\core\classes\WPSOLR_Events::WPSOLR_FILTER_SEO_PAGE_META_VALUE, ‘wpsolr_filter_seo_page_meta_value’, 10, 1 );
} );
};
function wpsolr_filter_seo_page_meta_value( $value ) {
global $wpsolr_seo_meta;
// Store $value
$wpsolr_seo_meta = $value;return $value;
}mcl7Participant3 years, 9 months ago #23935Correct me if I am wrong but I thought I had seen a post where this was being discussed.
Just to be clear, what I am trying to be do is seen in the following image where “Adidas” was the selected filter:The goal here is to make sure that it’s clear to the user (especially when the URLs are shared) that the page they are viewing is filtered.
Thoughts?
You must be logged in to reply to this topic.