Hi @elliot ,
same here. Tried to solve it with the hoster via e-mail tickets for weeks, no dice, and still not working since you changed your hosting stuff, unfortunately đ .
Cheers²
Hi there,
this seems to be connected to some kind of server settings on some hosting environments. I have just discovered that two sites hosted on Strato (strato.de) are affected by the connection issues and wonât let me install my license and update accordingly. Did anybody come up with some kind of fix? I presume it is something on the hosterâs end and we cannot do much about it, but it would be good if we could point out what the actual problem is. ACF support was kind, but has no clue, since it seems server related.
In my case, it actually was real easy. Another plugin responsible for dragân drop re-ordering of posts and CPT items interfered with ACF. Once I disabled it, ACF worked flawlessly and as before. Just for those who have problems with re-ordering not being saved in the backend may just look out for some faulty plugin.
Hey Hube2,
I would really like to, but the project I am working on is strictly on a limited budget on which I already toss in extra hours. This functionality is actually a personal plus, and since I have such a workload I probably wonât have the time to handle Gravity formâs specialities this time around. If I find another project where I need it again I will investigate more. Thank you so far for your effort in helping out on this matter. It worked, in the backend, flawlessly, too bad not with GF at all :/.
Best
physalis
Oh well, then this might just be something on Gravity formâs end I suppose, since I had trouble filling other (non-text) ACF fields as well. Too bad, but thank you for your help anyway! There doesnât seem to be a different hook for gravity forms submissions to alter a field before saving it..
Oh, I may have come across the problem itself.
add_action('save_post', 'add_image_to_acf_field');
is supposed to trigger when a post is published, right, not when a post is saved regardless of the saving type?
The front-end submissions only get saved as drafts, and once I publish it afterwards (i.e. open in backend and publish it), the field gets filled properly. So the draft state might be the problem?
Mh, maybe it is something how Gravity forms fills out the post_thumbnail field and/or saves posts and custom fields? I managed to fill other (text-based) fields with Gravity forms frontend posting, but so far the image field fails (had a similar problem with a date picker field – even though it had the same format, it never reached the actual ACF field when saving a post with Gravity forms). So maybe the complication is somewhere along GFâs creation of posts.
Hi Hube2,
I tried it out, tied it to the right field key (the one I found with the ‘_field_name’ in the database), but it still does not fill the image field unfortunately. What format should I choose when creating the field? Itâs ID at the moment….
All the best
physalis
Edit: Just to make sure, I put this into my functions.php, right?
Edit 2: There is a small typo, no ‘ needed after $post_id in line 5. Still not working :D.
For what itâs worth, a customer just reported they can no longer order images properly. They are able to sort them in the backend, hit Update and the order is gone again. Also, all galleries on the frontend are in the wrong order. I am very familiar with the Console, and there is not a single error, and no rules relating to users being logged in or something.
This is such a mess. I only got to know you cannot have options pages holding both the wordings for the first and the second language through a customer that complained about elements not being visible anymore on their website, and it must have already been weeks since it is defective. This is actually not the first time that something like that occured, but it is rather annoying.
I would love to get notified in a way when such changes occur; I like the idea but would love to decide in what I way I want it, especially for sites with multiple languages. Now I have to check every project whether it still behaves or not.
Ah, sorry for not getting back, I kind of forgot about this thread later, but your hint helped a lot, @Hube2. It could be solved, even without hitting the functions.php, by just using the field inside the loop, and that’s what I actually did then. Thank you so much!
Once I need it again I’ll be glad to check it out, thanks Philipp ;).
I finally found the problem, and it obviously didn’t have anything to do with ACF. For some reason, I had a mixup with a (local) capital letter in my theme name, so it wouldn’t recognise any of my changes, since it landed in the wrong folder (e.g. wp-content/themes/Themename instead of wp-content/themes/themename). Now everything seems to be working smoothly, and the solution above is working well :).
Thank you anway for your fast help :). It did help me to look deeper.
Hi @hparton,
both the main plugin and the options page addon are activated network wide :).
Cheers
physalis
@refreshingdesign Unfortunately I am not able to get fields working with your method. I only get my fields on my first installation when not deleting the original fields, the second site doesn’t have any fields available, neither in the editable field groups nor in the places the custom fields should appear. Does this method still hold true for WP 3.9?
Here is what I did:
1. Had a ‘normal’ WP installation, produced custom fields, used them, fine.
2. Turned it into a multisite installation. All fine, fields still active for the first site.
3. Exported the fields to PHP.
4. Inserted the PHP into my functions.php.
5.a Trashed fields: I have no fields available anymore.
5.b Don’t trash fields: Fields stay active in first site, second site has no fields.
Is there anything I am missing here :)?
Thanks in advance
physalis
Hi there,
same problem here. I can use the plugin on a multi site, but was not able to get the same fields to appear across sites – I chose the PHP export and then insert into functions.php route, but it actually does not work – the fields are only available in the first sub-site I had set up. Since many (professional ;)) users are maintaining multisites this should be something you care about a bit ;).
Best
physalis
Don’t know if this is hijacking the thread, actually. I use a plugin called ‘Additional image sizes [zui]’ (https://wordpress.org/plugins/additional-image-sizes-zui/) that enables me to add and remove image sizes through the WordPress backend plus lets me create or delete the corresponding cropped versions of my media. However, once I use one of the sizes declared via the plugin and insert it as the size to be used by the gallery addon, it does not put anything out. Once I add the size to my functions.php manually it works flawlessly.
Is there a way I can use both? I know it’s a different plugin that’s in place here, but I sincerely hope there is a workaround for these circumstances, since the sizes do work with other plugins so far.
Best
physalis
I would of course be glad to get a hint on how to solve the initial question as well đ .
Then you need to edit the template that actually displays your calendar and change the link to the event’s detail page to your custom field’s one as described above. Only I don’t know if the plugin is actually working with editable templates or not. Usually there are template files included with the plugin or you can create a new one, but that depends on the plugin you use.
Do you have a basic notion of how to actually use the custom fields you create with ACF?
Hey there,
the question and its fittings seem a bit remote to me, since I actually don’t know the plugin and how you can manipulate it (has it its own templates?). However, you can retrieve the value of a field and give it back by the simple the_field(); function. E.g. if you’re inside the loop, having a field named eventlink that links to a post or page could be used as such:
<a href="<?php the_field('eventlink'); ?>">Read more</a>
This would create a link to your post linked to from the backend instead of the plugin’s event page.
This is pretty basic usage of ACF which you can read all over the documentation, so I fear this is not what you actually need?
Best
physalis
Hey there,
thanks for letting me know. I am already checking it out, so thanks for helping me so far!
Best
Eno
Hi elliot, you one-of-a-kind support guy :),
that sounds fine and reasonable – only I am too little a programmer to know how to actually do it. Could you give me a hint, if this is not asked too much? I may get around my head to get to loop the rows (I of course did that already, though not with hardcoded post IDs), but wouldn’t really know how to match the ‘name’ field and have it incorporated into a shortcode as a parameter (like in my [bio John Doe] example).
If this is way above what you could offer here, please don’t refrain from telling me!
Best
physalis
Hi elliot,
thanks for your fast reply as usual đ .
Your mention of ‘either a post or ID’ hinted me to the right way. What I did so far: use a repeater field and let the user add a row for each related posts with a select. It was a post objects subfield which I thought to be the right one to go. Now I swiped the repeater field and took a relation field – which is much more sexy since you can see and rearrange your posts in a list. I finally got it working this way!
My code, if anyone interested:
<?php while(the_flexible_field('factsheet')): ?>
<?php if( get_row_layout() == 'factsheet' ): ?>
<?php $posts = get_sub_field('related_posts');
if( $posts ): ?>
<ul>
<?php foreach( $posts as $post):
setup_postdata($post); ?>
<li>
<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('thumbnail'); ?></a>
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</li>
<?php endforeach; ?>
</ul>
<?php wp_reset_postdata(); // IMPORTANT - reset the $post object so the rest of the page works correctly ?>
<?php endif; ?>
<?php endif; ?>
<?php endwhile; ?>
Thanks again, and good to know you’re around ;).
Best
physalis
Edit: cleaned the code for it to display properly.
Hey Elliot,
that actually nailed it. Flawlessly. Thank you so much ;).
Best
physalis
No idea, anyone? Maybe some kind of hidden field I could attach through the configuration that’s extractable to use for my current case?
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.