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 -

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

Php operator `break` doesn't stop while -