Another update on this – I just tried it on a completely separate WordPress 3.9.1 site, and it’s doing the same thing. It will not save the settings that are checked. Everything else is working – it just won’t hide things or re-position.
I’m also seeing this on a 3.9.1 site. If I put a check mark in hide content editor and hide featured image and click update, the checked boxes uncheck themselves.
So I tried telling the ACF fields to show after Title – that didn’t save or work either. However all other custom field settings are saving and working without issue.
This site is a site built with the Roots starter theme. I’m using several plugins in addition to ACF like CF7, BackupBuddy, WordFence and responsive lightbox.
To answer the question above, mine is on a page. I’m telling ACF to show the fields for a certain page.
NICE. You did it!!!!
Thank you, thank you. That worked beautifully.
– kyler boudreau
l.pirondini,
Thanks for your input. I tried it out, but the above (second) section of code caused the page not to load, and I’m not enough of a PHP guy to figure out why.
Any other thoughts on this? Not sure how to make this work.
Thanks l.pirondini,
I replaced my code with your code above, but it made the page not load. So I took out the lines that say “some_other_args” but it still didn’t work.
I’m just trying to grab everyone in Texas, and then sort them alphabetically by city. My ACF city field is just called “city.”
Thanks, tried that code but didn’t get anywhere. So forget my code.
I dialed it back to this from the support document:
<?php
var_dump( get_field('car_photos') );
?>
That returns a bool(false) on the page. Any ideas?
Thanks for the help. I normally never have issues with ACF.
Elliot:
I did try code from that page before posting the question. I’m a front end guy that dabbles with PHP just enough to do my WordPress sites. Your ACF has been a life saver for those like me.
Anyway… if you can just show me how to include a gallery in a custom post type that would rock. For example, let’s just say the custom post type was only pulling in the ACF gallery (to make it easy) – below is how I’d pull in a normal ACF field in a CPT:
<?php
$loop = new WP_Query( array( 'post_type' => 'cars', 'posts_per_page' => 10 ) );
while ( $loop->have_posts() ) : $loop->the_post();
echo '<img src="';
the_field('images');
echo '">';
endwhile;
?>
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.