I attempted a hotfix myself to make my site work as per advice here:
https://stackoverflow.com/questions/66671269/fatal-error-uncaught-typeerror-count-argument-1-var-must-be-of-type-cou
// add as optgroup or results
if ( is_countable($args['post_type']) && count( $args['post_type'] ) == 1 ) {
$results = $results[0]['children'];
}
The first paragraph makes complete sense to me. I’m having the exact same issue. I need to search by post_id or post_title instead of the whole post content. Currently the search returns a whole lot of irrelevant results. Judging by the number of issues in the forum talking about relationship search being broken I think ACF should focus on fixing this asap.
Also need this. Any example code?
Awesome, thanks guys!
Thanks, I will give it a try.
Thanks James! Almost everything works except for I couldn’t find a way to re-run my code after validation after the red error messages are loaded.
-Kris
Thanks James, this works perfectly. I hope in the future though ACF will have a template system so we could customize before render. #FeatureRequest.
Cheers,
Kris
Thanks James, I know it works with WPML but due to client requirements I need to use Polylang.
Wow, this actually worked! Thank you James! 🙂
+1 on how to override acf_form() display code for custom html and css output?
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.