Forum Replies Created
-
AuthorPosts
-
June 17, 2024 at 3:16 pm in reply to: missing certaing CPT (based on location taxonomy) in search results #48494
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterHi,
Unfortunately the video didn’t come through, the file size was too big.
I tried to replicate, but I don’t see any blinking. Can you please reupload the video to youtube or somewhere, that supports bigger files? I will then try to replicate the problem.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterGreat!
The fieldsets have classes based on the field or taxonomy names, so you can actually target the fieldset as well as the legend element, like so:
/* For taxonomy term filters */ .asp_filter_tax_{taxonomy_name} { } .asp_filter_tax_{taxonomy_name} legend { } /* For custom field filters */ .asp_filter_cf_{field_name} { } .asp_filter_cf_{field_name} legend { }Just replace the {taxonomy_name} and the {field_name} in the above code to the corresponding taxonomy or custom field names.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterHi!
Thank you very much for the details, it helps a lot!
You are looking for the generic front-end filters, the taxonomy term and custom field filters section. These documentation should hopefully explain everything you may need.
Then once you get it configured, you can either use the blocks or the shortcodes to place the filters to the position you need.
Ernest Marcinko
KeymasterAll you need to do is loop through the items, no need for any custom code in the search.php file, just the default loop:
while ( have_posts() ) { the_post(); // post layout here }Ernest Marcinko
KeymasterYou cannot access this content.
-
AuthorPosts