library/Content/ShortCode.php
public function displayMetaValue($atts, $content = "")
    {
        //Default value
        extract(shortcode_atts(array(
            'key' => ''
        ), $atts));

        //Get field with formatting if exits
        if (function_exists('get_field')) {
            return (string) get_field($key);
        } else {
            global $post;
            return (string) get_post_meta($post->ID, $key);
        }
    }
public function displayMetaValue($atts, $content = "")
    {
        //Default value
        extract(shortcode_atts(array(
            'key' => ''
        ), $atts));

        //Get field with formatting if exits
        if (function_exists('get_field')) {
            return (string) get_field($key);
        } else {
            global $post;
            return (string) get_post_meta($post->ID, $key);
        }
    }
public function displayMetaValue ( $ atts , $ content = "" ) { //Default value extract ( shortcode_atts ( array ( 'key' => '' ) , $ atts ) ) ; //Get field with formatting if exits if ( function_exists ( 'get_field' ) ) { return ( string ) get_field ( $ key ) ; } else { global $ post ; return ( string ) get_post_meta ( $ post -> ID , $ key ) ; } }
Shortcode function for "meta"
@param  array $atts     Attributes
@param  string $content The content of the shortcode
@return mixed
Shortcode function for meta