That works! Thanks!
Hi John,
I can see that the acf_form is for a frontend form. What I need is to add novalidate to a form when editing a post in the admin.
I register the field group for the post with acf_add_local_field_group and then ACF generates the form.
Is there a way to add novalidate to this kind of form?
Check. I can see that Safari does some validation that Chrome doesnt. I will keep that in mind and check 🙂
Hi John,
You are a life saver! Thanks!
Got around to setting up a test site 🙂
I am not using have_archive – loop.
I enable debug mode and can confirm that there is data in the field on the archive page.
I wonder if ACF sees the archive page as an option page that is outside acf scope and that I therefore should use the wordpress get options function instead?
I can give you access to the site if you want. Just send me a mail 🙂
I cant rigth now, as installing the update breaks the live site. I need to setup a test site with the update.
As I said the same code works in 5.10.2, so the get_field call is valid and there is data in that field.
I will let you know when I have a test site ready.
The field I am trying to get data from is named “udstiller_label_ental”
The posttype is called “produkt”
So I tried:
get_field('udstiller_label_ental','produkt_archive');
But got no data in version 5.11. In version 5.10.2 I get “udstiller” as a result.
Hey
tried that – both with variables for posttype and in plain text. Neither returned any values.
This is the code:
$value = get_field($felt, $archive);
where $felt is the field name and $archive is posttype_archive. In this case ‘produkt_archive’
When I call a field on an archive page, I get an empty respons.
I am having issues as well with the new version. I use ACF Extended and its function to create a archive page for post types. They use get_field to get data from the archive page like this:
get_field(‘fieldname’,$posttype’_archive’)
That doesnt work anymore. I don’t know how they modify the get_field call.
5.10.2 works like a charm
Never mind. It was an update for WP Import all that caused the problem.
Hey John
I wrote to ACF support about it and they will look at it as a bug.
I could understand if the validation worked like this every time and on both post, pages and CPT. But the error only occurs on CPT.
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.