Guys, but table is broken, screen options don’t work
http://cl.ly/lozJ
ACF Qtranslate fixed for 5.6.0
Download patch here
https://github.com/Tusko/acf-qtranslate/commit/aefdf4e5645b489be60c57724c10f36ba2319ea7.patch
@james
Thanks!
I’ve fixed it, just changed add_action( 'after_setup_theme', 'wpa__prelicense' );
->
add_action( 'admin_init', 'wpa__prelicense', 99 );
Hi @james
This code fix it:
if(!function_exists('acf_add_admin_notice')) {
function acf_add_admin_notice( $text, $class = '', $wrap = 'p' ) {
// vars
$admin_notices = acf_get_admin_notices();
// add to array
$admin_notices[] = array(
'text' => $text,
'class' => "updated {$class}",
'wrap' => $wrap
);
// update
acf_update_setting( 'admin_notices', $admin_notices );
// return
return ( count( $admin_notices ) - 1 );
}
}
if(!function_exists('acf_get_admin_notices')) {
function acf_get_admin_notices() {
// vars
$admin_notices = acf_get_setting( 'admin_notices' );
// validate
if( !$admin_notices )
{
$admin_notices = array();
}
// return
return $admin_notices;
}
}
But it isn’t a solution 🙁
function wpa__prelicense() {
if( function_exists('acf_pro_is_license_active') && !acf_pro_is_license_active() ) {
$args = array(
'_nonce' => wp_create_nonce('activate_pro_licence'),
'acf_license' => base64_encode('MY_LICENSE_STRING'),
'acf_version' => acf_get_setting('version'),
'wp_name' => get_bloginfo('name'),
'wp_url' => home_url(),
'wp_version' => get_bloginfo('version'),
'wp_language' => get_bloginfo('language'),
'wp_timezone' => get_option('timezone_string'),
);
$response = acf_pro_get_remote_response( 'activate-license', $args );
$response = json_decode($response, true);
if( $response['status'] == 1 ) {
acf_pro_update_license($response['license']);
}
}
}
add_action( 'after_setup_theme', 'wpa__prelicense' );
That code worked before an update to 5.5.0 & error are visible with qTranslate, when I changed the language to NOT default.
You can see error here http://trachuk.dev0.site/en/
So, I need to create two options pages?
You can use a plugin ACF CPT Options Pages
I have the same problem, when I registered Options Page with custom ID
Hi @elliot.
I have created ajax function, where inside are repeater fields.
Once of them has wysiwyg
and in the content I have youtube video link (in admin area those was converted to iFrame).
In ajax response videos are as string.
I have tried to use apply_filters( 'the_content', $tab['content'], true );
but it doesn’t work.
format_value_wysiwyg
(function above) doesn’t work for me.
Hope you can help me. Thanks
I think it is the better way
https://wordpress.org/plugins/advanced-custom-fields-markdown/
$terms = get_field('my_tax_field', 'option');
Try my plugin
https://github.com/Tusko/ACF-CPT-Options-Pages
omg…
that’s after saving without changes
http://awesomescreenshot.com/0e04sdoic5
when I saved fields without “#” symbol in the and was added “#” in fields
see screenshot
http://awesomescreenshot.com/0984sdnn35
http://awesomescreenshot.com/0414sdmva8
still doesn’t work. fields saving not correct
ACF Pro
qTranslate – X
ACF Qtranslate
all plugins are latest version
p.s. Sorry for my english
@Dalton Thank you 😉
Ohhhhh guys! Thank you)
Can you add prefix, like ACF – Field Group Name.
So it will be easier for a simple user
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.