Thanks John, I thought this was the case, I just didn’t want to spend time coding something, if this functionality exists it some form.
Figured, using the field key did the trick.
Please ignore this message, the following topic did the trick.
@hube2 cron job of course, cheers for the pointer.
Hi @vindicateme, At the moment I’m trying it with this extension the video field https://github.com/findingsimple/acf-field-video.
But I was also thinking this about the images field, if it’s selected to return the Image Object but some reason I needed to get hold of say Image URL or Image ID is there a simple work around.
Cheers,
^JD
Hi Jonathan, marked as solved now.
The update_field was perfect for storing the value, I’m just a little concerned about how I’ve gone about it, I don’t really want to use a cron job but I was wondering if you perhaps know of any better ways of storing a value to posts on a regular basis but perhaps not on every page load.
Cheers for any pointers.
^JD
Hi @jonathan cheers, I was actually just looking at this.
It’s currently pulled into the loop itself and output from a variable within that.
^JD
I’ve found I could use the following to store the User ID in a variable, after that, the world was my oyster.
<?php $assigned_user = reset($post); ?>
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.