Thanks for the help, James.
Unfortunately, none of the functions that start with “acf_” are present in any of the code anywhere in my theme directory. As well, I don’t see a json directory either. What else could be going on here?
I am baffled as to how these fields / groups were created. And, as such, quite roadblocked in creating this system anew for another web project.
Any further help much appreciated. Thanks.
I am now trying to verify a consistent data / table structure. I see field name codes, but I am not finding the actual field name in any of the tables. Say I have a field inside a repeater named “My Field One” / “my_field_one” — where would I see that/those strings in the schema? Thanks.
We are using Mercurial as a versioning system with BitBucket as the repo store. We work on a local dev in VBox and make changes (filesystem — plugins, WP updates, etc) in a branch there and push up to servers. We are not typically pushing content up (DB content), as now we are in a early build state.
I’ve been thinking about this. It has been the case that in certain circumstances for testing we have likely pushed out an older branch, with an older ver of ACF and been prompted for a DB Update in WP Admin in going from ACF Pro to _earlier_ ACF + Repeater. I believe one of us have seen this promote and followed it on said servers (perhaps not all servers).
Are you thinking what I’m thinking here? Ideas to resolve? Thank you.
That returns (I see with a var_dump) an empty array:
array(0) { }
Is this something I can discover the source of browsing the tables? Thanks again.
Thanks for the help.
Still no output between BEFORE and AFTER. I will add that there is another custom fieldset in use on the Staging server where images are not serving in this code I am wrangling with that also uses an image in a repeater and it DOES work, DOES render.
So that works, and two repeater field sets containing image fields written very shortly after the functional one on same server do not render. Still digging.
I looked into the DB after the first field “name” in that var dump:
I do not see the IMAGE EXSITS message — so the get_sub_field() function is evaluating negative. That is the field name, and note that on another server running the same code repository — THE IMAGE RENDERS.
Maddening. Huge roadblock on this proj, sadly. Other ideas? Thanks.
I’ve made a simpler new page on the Staging server and it also does not show images in the repeater. They are there in the admin. Var_Dump included:
if(have_rows('image_test_repeater')) :
while(have_rows('image_test_repeater')) : $rowHold = the_row();
var_dump($rowHold);
echo("BEFORE");
if(get_sub_field('test_image_file')) {
echo("<img src='");
the_sub_field('test_image_file');
echo("'>'");
}
echo("AFTER");
endwhile;
endif;
And out put is:
array(1) { ["field_57c8633980573"]=> string(4) "2117" } !!BEFOREAFTERarray(1) { ["field_57c8633980573"]=> string(4) "2114" } !!BEFOREAFTER
Those are the correct post_ids for the images, in the dump.
James,
I saw this page and attempted to get this done using it as a guide but was unsuccessful and so determined it may not be possible. This is why I posted to the forums.
Must the options page be the source on this? I’d rather it not be.
Thanks.
It turns out there has been a decision change. Now standard pagination is needed. Still something I need to figure out…
bp
Is this the workaround solution?
http://wptavern.com/buckets-a-wordpress-widgets-alternative-for-placing-content-anywhere
Buckets + ACF
bp
Disregard — I had neglected to name something in the setup process.
bp
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.