Well, investigating a bit more… This isn’t happening to a few other websites I checked. It’s only one website so far.
In addition, copy/paste from word or google doc, isn’t cleaning up the text/pasted content, as it usually happens.
What could affect this?
Happy New Year John!
What you asked me to try is what the issue is. So the answer is no, that field is not contained in the returned array.
Anyway, that’s a finished project by now and given the issue, I just went by getting that specific field individually.
For the time being, I am not going to dig it further.
Thanks a lot for your response!
@hube2
thanks for the input @djcottrell
yes, of course!
It was that simple and right in front of me – feeling a bit silly now.
Thanks!!
In the above function, is it possible to get the post_type somehow?
I am thinking to use this same field in more post_types, so it would be nice if I could do something like:
if ('places' = $post_type) {
$meta_query = array(
array(
'key' => 'place',
'value' => $post_id,
'compare' => 'LIKE'
)
);
$args['meta_query'] = $meta_query;
}
I tried global $typenow
but it didn’t do it.
My other option is to create additional field groups…
@hube2 John, thanks a lot for the response and the help.
I realized that as with Save Terms disabled – my tax_query was returning nothing.
I enabled, re-saved the post and now tax_query works.
thanks John
@webthemer – Did you manage to find how to add autoplay for oEmbed with Timber?
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.