We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Greetings!
I noticed, that on some sites the [acf] shortcode does not work, while on some sites it works (with the same versions of WordPress and SCF).
[acf]
When trying to output shortcode [acf field=”..."], an empty string is displayed. Everywhere – in page/post content, plugins etc..
[acf field=”..."]
I checked if the shortcode is registered using $GLOBALS[ 'shortcode_tags' ] – shortcode [acf] is registered.
At the same time, if you recreate the shortcode, it starts working correctly:
add_shortcode( 'acf', function ( $atts ) { $value = apply_filters( 'acf/format_value', get_field( $atts[ 'field' ], $atts[ 'post_id' ] ) ); return $value; });
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Greetings!
I noticed, that on some sites the
[acf]
shortcode does not work, while on some sites it works (with the same versions of WordPress and SCF).When trying to output shortcode
[acf field=”..."]
, an empty string is displayed. Everywhere – in page/post content, plugins etc..I checked if the shortcode is registered using $GLOBALS[ 'shortcode_tags' ] – shortcode
[acf]
is registered.At the same time, if you recreate the shortcode, it starts working correctly:
The text was updated successfully, but these errors were encountered: