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

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

ubuntu - Bash Script to Check That Files Are Being Created -