function post_thumbnail_shortcode($atts, $content='') { if(!function_exists('post_thumbnail_shortcode')) return; if(!$atts['size']) $atts['size'] = 'thumbnail'; return ''.get_the_post_thumbnail(null,$atts['size']).''; } function post_thumbnail($str){ $args = wp_parse_args($str); echo post_thumbnail_shortcode($args); } add_shortcode('post_thumbnail', 'post_thumbnail_shortcode'); ?>

Crumble cu afine » Crumble cu afine

Crumble cu afine


Comentarii