case 'type': return $post->post_type; case 'title': return $post->post_title; case 'date': return $post->post_date; case 'date_gmt': return $post->post_date_gmt; case 'content': return $post->post_content; case 'excerpt': return $post->post_excerpt; case 'status': return $post->post_status; case 'parent': return $post->post_parent; case 'modified': return $post->post_modified; case 'comment_count': return $post->post_comment_count; case 'parent': return $post->post_parent; default: return $post->post_title; } return; } } } add_shortcode('Vars', array(Vars::get_instance(), 'vars')); }