WordPress global variables?
Meta data is save in postmeta table and to get them you can use get_post_meta($post_id,’meta_key_name’,true); so in your shortcode function globilaize $post object and get you value like that if($something == “value”) { global $post; $one = get_post_meta($post->ID,’value_name’true); $two = get_post_meta($post->ID,’value2_name’true); }