php - Get_field value to show in shortcode -



php - Get_field value to show in shortcode -

im trying utilize do_shortcode display info advanced custom field in admin cms.

i have advanced customed field called 'meta_slider_shortcode'. do_shortcode display info in meta_slider_shortcode' field.

here php:

<?php $meta = get_field( "meta_slider_shortcode" ); echo do_shortcode('$meta'); ?>

check value of $meta. if not contain square brackets add together in do_shortcode do_shortcode("[$meta]");

php wordpress advanced-custom-fields

Comments

Popular posts from this blog

c - Compilation of a code: unkown type name string -

java - Bypassing "final local variable defined in an enclosing type" -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -