@hube2 Perhaps it should be made explicit in the documentation that invoking acf_form_head
during ajax calls causes this error. We just ran into this one pretty hard.
@dareadel We experienced the same issue using the native block.json format. For us we just needed to call do_blocks
in order to get either method working.
In our case we we’re missing the do_blocks
call when echoing the post_content
.
In our case we we’re missing the do_blocks
call when echoing the post_content
.
Same issue on our end, anyone got extra info on this?
Bump, same issue – no answer. Any and all help appreciated 👻
Experiencing exactly the same issue on our end. Did you find a solve?
Just a heads up that the code linked to by John has an error. The code should only target the current query, however due to the use of the global is_search()
function, the filter will be applied to all queries on page load that happens to be a search.
The first snippet should be:
function cf_search_join( $join, $query ) {
global $wpdb;
if ( $query->is_search ) {
$join .=' LEFT JOIN '.$wpdb->postmeta. ' ON '. $wpdb->posts . '.ID = ' . $wpdb->postmeta . '.post_id ';
}
return $join;
}
add_filter('posts_join', 'cf_search_join', 10 , 2 );
Same goes forth for posts_where
and posts_distinct
.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.