Where is your field located?
Options will work with parameter ‘option’,
if its Product/Page specific you need Prduct/Page ID then use ID as parameter,
also have in mind that WooCommerce could have more that one notification (Cancel, Pending, Complete order…)
Get value from another post or Get value from Options page
From WooCommerce website:
Woocommerce how to customize emails in WooCommerce
@precies scope of IPs
was blocked , and we were in that scope.
– easiest way for testing response to see is IP blocked, was login via SSH curl https://www.youtube.com/watch?v=egSvdEJZRBk
– when you are not blocked, there will be more than 10lines of response…
@precies (would be hard to block one video and allow the same video on the same domain, but change in API or Code could be possible)..
Looks like its not an ACF issue, using default WP oEmbed error is there:
wp-json/oembed/1.0/proxy?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D1La4QzGeaaQ%26t%3D76s&_locale=user 404
{"code":"rest_forbidden","message":"Sorry, you are not allowed to make proxied oEmbed requests.","data":{"status":401}}
Tried/Tested:
– ACF some 5.x, old versions and latest
– PHP versions: 7.2, 7.3, 7.4
– WordPress version 5.2.1, …latest
– Themes: TwentyTwenty, TwentyNineteen, Storefront themes
Just to confirm its working on local development:
— the same setup (plugins, theme… 99.9% the same content – clone)
@markargent could this help, How to get value from a user, ACF docs
<?php
/**
* get current author, use this on single page
*/
$author_id = get_the_author_meta('ID');
$author_image = get_field( 'author_image', 'user_'.$author_id );
$author_image_size = 'medium';
?>
<?php if( get_field( 'your_field_image', 'user_'.$author_id ) ) : ?>
<?php the_field( 'your_field_image', 'user_'.$author_id ); ?>;"
<?php endif; ?>>
<!-- get just img with wp_get_attachment -->
<?php echo wp_get_attachment_image( $author_image['ID'], $author_image_size,"", array( "class" => "custom-class-name" ) ); ?>
@wggl Look like we all have the same issue (we get just link)..
https://support.advancedcustomfields.com/forums/topic/youtube-oembed-field-not-working/
@precies Having almost the same issue 7days+, first was thinking it was problem with Plesk – but on another Plesk install its working.
– When you insert YouTube link – you get just Link in backend and frontend (no thumb, no video..) ?
– Normal iframe code is working, so it isnt YouTube (block or something like that)…
– We did try different themes (TwentyTwenty, Twenty Nineteen…)
ACF documentation page: Addign fields to Taxonomy terms
<?php
/**
* this should go to archive.php or category.php
* you can also target category like: category-name.php
* Get things for ACF on category
*/
$term_id = null;
$taxonomy = null;
$queried_object = get_queried_object();
$queried_term = null;
/**
* Dont show on Search or 404 page
*/
if ( !$queried_object == null && !is_search() && !is_404() ) {
$taxonomy = $queried_object->taxonomy;
$term_id = $queried_object->term_id;
$queried_term = $taxonomy . '_' . $term_id;
}
?>
<?php if ( get_field( 'acf_true_false', $queried_term ) ) : ?>
<?php if ( get_field( 'acf_text_field', $queried_term ) ): ?>
<div>
<?php the_field( 'acf_text_field', $queried_term ); ?>
</div>
<?php endif; ?>
<?php endif; ?>
Conditional tags, to show things only on one category:
<?php if ( is_category('category_slug') ): ?>
<!-- show only on category_slug category, you can put ACF code here also -->
<?php endif; ?>
Hope it helps,
@benblue JSON only saves fields,groups.. not things that user are filling in.
– best way would be do synchronize database PULL/PUSH *but that have nothing to do with ACF
1. ACF json will save things you edit in Custom Fields section (create new fields, change, remove…)
2. Database will have all things user fill/put inside Page,Post,CPT fields you created.
Could you share a screenshot or more infos ?
return 2; to make it work, and thank you 🙂 kindly.. but should work without filter, a
This is still an issue..
Shall I disable Woo with 200+ products to use ACF or shall I scream ?
Still have some problems,
ACF 4.3.9 and WPML 3.1.5 – the_permalink dont show for translated single page..
To be honest im not anymore shure what version to use where..
Shall try to switch to ACF 5 and try on this website..
* updated permalinks, updated ACF4 to 5, using WPML 3.1.5 – and for now all (backend-frontend) look good and working with both languages
Can you try ACF 5 with WPML 3.1.5 or older ones ?
Also i had problems with them also, on WPML, and after a quick chat they told me author of ACF isnt responding to their mails, dont want to work with wpml bla bla, im 70% shure its not true…
Would love if @Elliot can say anything about situation, and me2 also think they want us to use Tools (plus buy Views).. i dont care i did use Tools and Views, but dont want it anymore, i slowly tested ACF and for me it was far greater tool.
Would love better WPML support (compatibility)!
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.