Hi thanks for you reply and sorry I should have marked this as solved – Mike sent me a private reply which solved it.
Cheers
I am afraid that from our end, we can be of much assistance as this depends on the user’s capability role and not the ACF side as the code is controlled from the WP end but not the ACF side.
To test that out, you can allow the subscriber user to add an image to the gallery and try uploading from the back-end without using ACF and you will notice that the subscriber user cannot make changes to the alt, title, description, as well as the caption text.
..you can make use of the user editor role plugin, to enable the subscriber upload_files, edit_post, as well as edit_published_posts, then amend your code to take care of the subscriber and you would be in a position to change the caption or alt tags.That said, please have a look at the following screencast on the same: https://www.loom.com/share/4cb6bc1124c1402284384061e19d4768
Thanks John this is perfect!
Yeah that worked! Thanks a million 🙂
It’s printing the date values like this:
21/03/2015
Agh yes, that’s right. But it still doesn’t return any values 🙁
Thanks – I’ll give that a go next time.
Hi I’ve been trying to get run a query from a repeater field with radio buttons in an option page. I’ve tried this code, but no joy:
<?php if(get_field('funders', 'option')): ?>
<?php if(get_sub_field('partner_type', 'option') == 'travel'): { ?>
<h4 class="section-header">Travel Partners</h4>
<?php while(has_sub_field('partner_type', 'option') == 'travel'): ?>
<?php the_sub_field('partner_name'); ?>
<?php endwhile; ?>
<?php } endif; ?>
<?php endif;?>
I’m not exactly sure how to run this query any hints are welcome.
Thanks
You are a Star! It works perfectly and I feel like an idiot for leaving out the echo 🙂
Thanks a million
C
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.