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

Delphi change the assembly code of a running process -

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

C++ 11 "class" keyword -