The forums are closed and will be removed when we launch our new site.
Looking for support? You can access the support system via your account.
-
Search Results
-
Hi,
We have set-up a custom query with an ACF relationship field.
This works without S&FP.
When we add
'search_filter_id' => 4356,
to the WP Query, suddenly all posts are shown and not only the ones we defined in our WP_Query. (when we comment it out, it works)Below the full code
// Get account linked to logged in user $account = get_field( 'field_5c3a01aa0a32e', 'user_' . get_current_user_id() ); // Get lassers from that account: returns array of ID's $lassers = get_field( 'field_5c3a0bb483f86', $account[0]->ID ); // args Query $args = array( 'post_type' => 'lasser', 'posts_per_page' => -1, 'post_status' => 'publish', 'order' => 'ASC', 'search_filter_id' => 4356, 'post__in' => $lassers, );
We also tried the filter sf_edit_query_args but that doesn’t work either.
Any idea why the above isn’t working/