//custom function function create_shortcode_test() { echo the_excerpt(); } add_shortcode ( 'show_excerpt' , 'create_shortcode_test' ); Or…
Simple debug script for PHP and WordPress
Output some variables in the frontend to debug vars:
function enym_debug_after_body_open_tag() {
echo 'ENYM DEBUG:';
$meta = get_post_meta(get_the_ID(), 'enym_date', true);
echo 'META: '.$meta.' OF POST-ID: '.get_the_ID();
}
add_action('wp_body_open', 'enym_debug_after_body_open_tag');

