Forums › Forums › Search & Filter Pro › Problems with filtering custom post types/taxonomies
- This topic has 24 replies, 3 voices, and was last updated 5 years, 4 months ago by
Ross.
-
Anonymous(Private) January 9, 2020 at 7:18 pm #230524
Thank you very much for your help, we finally got the plugin working! There is one issue remaining: The meta data of each search result is not displayed. We try to achieve something similar to this: http://opendata.ffe.de/?s=Solar
This is our current draft: http://opendata.ffe.de/searchfilter-test/
Using a short JS script, we were able to display the button, the symbol next to the title as well as the link to the category. However, we have had some trouble accessing the metadata via PHP. We followed the approach described here (https://searchandfilter.com/documentation/accessing-search-data/) and here (https://support.searchandfilter.com/forums/topic/accessing-field-slug-on-search-results/#post-169171), but the printed results array is empty. We already checked that our ID is correct. As described earlier, we are using Elementor Pro on our page.
global $searchandfilter;
$sf_current_query = $searchandfilter->get(362)->current_query()->get_array();
echo ‘',print_r($sf_current_query),'
‘;
How should we approach this?Ross Moderator(Private) January 14, 2020 at 10:01 am #231001This reply has been marked as private.Anonymous(Private) January 28, 2020 at 12:57 pm #232334Hi!
By using the “posts” element, we finally got the plugin to do what we wanted it to do: http://opendata.ffe.de/data/
Thank you very much for your help!
Ross Moderator(Private) January 28, 2020 at 1:03 pm #232344Great stuff 🙂 I’ll be checking out compatibility with the Portfolio element over the next few months.
Thakns
-
AuthorPosts