-
AuthorSearch Results
-
March 23, 2021 at 12:31 pm #275875
RossKeymasterHaha…
That’s fair enough, we’ve taken a lot longer than expected to get to this point.
The thing is a lot of work has been going on, you just haven’t seen v3 yet – so I completely understand how that looks from the outside.
As you may or may not know for example, a huge part of v3 was going to be the ability to design your results… and at last minute, we did a bit of a u-turn and released that seperately, for free:
https://wordpress.org/plugins/custom-layouts/ That is tons of work that was going to be v3, complete, and out in the wild.V3 is pretty much a rewrite (and it got rewritten once, behind the scenes, to accomodate for Gutenberg)… we have v3 free in testing right now – and we have the new framework and tons of functionality already built for pro.
Sure its not out, but there is tangible progress to be seen, and once you see v3 (free) in beta shortly, you’ll hopefully see that we’re near the end.
It’s been a long journey that’s for sure.
March 17, 2021 at 9:27 am #275814In reply to: Custom Layouts
AnonymousInactivenot sure why the links do not apear above
link1https://support.searchandfilter.com/forums/topic/infinite-scrohttps://support.searchandfilter.com/forums/topic/infinite-scroll-on-archive-page-or-on-multiple-page/ll-on-archive-page-or-on-multiple-page/
https://support.searchandfilter.com/forums/topic/hide-result-shortcode-until-user-input-ajax-auto-update/
https://support.searchandfilter.com/forums/topic/include-a-category-and-its-child-category/March 16, 2021 at 10:29 pm #275856In reply to: Rewrite Issue
AnonymousInactiveI have two systems running nearly the same setup. The system i’ve got problems with has hierarchical taxonomies, the other one does not. Display results: post_type_archive. Rebuilding the cache did not solve the problem.
March 4, 2021 at 1:09 pm #275812In reply to: Custom Layouts
AnonymousInactiveHi,
Can I assume that this is the bones and flesh of the V3 grid and card editor ?
Then Can I share some request 🙂
- ACF fields : quite obviously, and even better any custom field, of which we could type in the field name (not label)
- Custom HTML field : a field where we could type in custom text ad html
- Shortcodes option for custom html field: run shortcode in html field, I expect it to be a checkbox option and not always “On” for performance optimisation
- CSS class field for each field : add a text field for adding CSS class, separated by space, at each level (grid, card, single card field, etc.). Please avoid us the pain we do face when styling S&Fpro form where we can’t add class to individual search field
- Post type styling : provide the ability, within a grid, to style cards according to the post_type is holds ; for instance card background color change according to post_type
- Post format styling : as above with wp built in post_format feature
- post term styling : as above, card can be styled according to the post terms (not only built in taxonomies please)
- Magic tags : well magic tags, or call it and implement it however you want. The idea is to display field value.s within field such as “css class” and “custom html fields”. Three examples, first, I have a custom html field coud contain “%post.title% is a %post.post_type.label% written by %Author%”, second, card Css field could contain “%post.post_type.name% %post.post_format% %post.category%” so the card css class would be “my_cpt_name video french_movies documentary”, video being the post format and “french_movies documentary” the two category term of the post. this enables advanced card building without over whelming ui for the user and very simple usage (pods.io magic tag are a good example of how far this could go)
Then, there are a couple of “features” we discussed not available out of the box in S&Fpro, but that may be implemented using custom php result template, and this would be great if they are not lost on the way
Finally the children category issue
Cheers
February 12, 2021 at 3:09 pm #275672In reply to: Showing all posts
TrevorParticipantThe code in that results.php already shows the featured image, with size ‘small’ I think from memory. To remove the excerpt, there is one line outputting that, so delete it. The same goes for any other line, e.g. category, date etc.
February 12, 2021 at 2:28 pm #275664In reply to: Showing all posts
TrevorParticipantWe used to have an integration for Post Grid (it was relatively simple), but it no longer works. The Post Grid we have never supported.
If you need a totally custom solution, the only way would be write your own template within our Using a Shortcode method’s results.php template, as briefly discussed here:
https://searchandfilter.com/documentation/search-results/using-a-shortcode/#customising-the-results
Note, we DO support Anywhere Elementor and Dynamic Posts, the documentation is here:
https://searchandfilter.com/documentation/3rd-party/elementor/
https://searchandfilter.com/documentation/3rd-party/dynamic-content-elementor/February 9, 2021 at 4:52 pm #275584In reply to: Editing query arguments
AnonymousInactiveSure. So I want the results here to display the same as the taxonomy archive page.
Here is the pre_get_post that results in the taxonomy archive page.
// Order posts first by event and date, then by other kinds of content function order_events_by_event_date($query=false) { // only used on main query on front end of site if (is_admin() || !$query || !$query->is_main_query()) { return; } // modfiy a custom post type to show and order by meta value if (is_tax() || is_archive() ) { $query->set('orderby', array( 'meta_value' => 'DESC' ) ); $query->set('order', 'ASC'); $query->set('posts_per_page', -1); $meta_query = array( 'relation' => 'OR', array( 'key' => 'expired', 'compare' => 'NOT EXISTS', ), array( 'relation' => 'OR', array( 'key' => 'expired', 'value' => '0', ), array( 'key' => 'expired', 'value' => '1', 'compare' => '!=', ), ), ); $query->set('meta_query', $meta_query); } } // end function blunt_pre_get_posts add_action('pre_get_posts', 'order_events_by_event_date');The nested array is necessary to include the “experiences” post type (first OR) and the array beneath it includes items that are not expired or field expired is empty.
I changed it using the code you provided above, removing the is_tax and first qualifiers about queries, and got the results posted above.
Only thing that seems to semi-sort the results is the sfid filter, so what is displaying results now is
function exclude_expired_results ( $query_args, $sfid ) { //if search form ID = 3988, the do something with this query if($sfid==3988) { //modify $query_args here before returning it $query_args['meta_query'] = array( 'orderby' => array( 'meta_value' => 'DESC' ), 'order' => 'ASC', 'meta_query' => array( 'relation' => 'OR', array( 'key' => 'expired', 'compare' => 'NOT EXISTS', ), array( 'relation' => 'OR', array( 'key' => 'expired', 'value' => '0', ), array( 'key' => 'expired', 'value' => '1', 'compare' => '!=', ), ), ), ); // end meta_query addtion to arg } return $query_args; } add_filter( 'sf_edit_query_args', 'exclude_expired_results', 20, 2 );sfid is 3988. Thank you for any help.
February 9, 2021 at 11:17 am #275575In reply to: Infinite scroll suddenly stopped working
AnonymousInactiveHi, I’ve just replaced our results.php with the infinite scroll one and it’s returned to the default styling but infinite scrolling isn’t working.
I’ve created a test version of it here:
https://poledancing-therapist.com/test-video-search/February 8, 2021 at 3:28 pm #275516In reply to: Showing all posts
TrevorParticipantIn the form setup, on the Display Results tab, what do you have the display results method set to? You can select only one method of displaying the results, so your column 2 should not now be sued, and the setting I mentioned should be set to @Custom layouts’, per the documentation I linked to.
February 7, 2021 at 5:56 am #275484In reply to: Will this plugin work with Oxygen Builder?
AnonymousInactive@Christian,
Check this out. We got this working quite nicely in oxygen.
https://searchandfilter.com/documentation/search-results/custom-layouts/
Search & Filter Pro is a nice little tool but combined with Custom-Layouts its fantastic. I would make a request to the devs to add into Custom-Layouts the ability to display custom post types or let us add some custom PHP to add them ourselves. and…. also let us add CSS Class names to every field so we can target them for more styling.
But honestly, the devs have done so good. Its a great start.
John.
-
AuthorSearch Results