I have a short code to a Wordpress plugin I am using, but I want to add it to a page temple. That part is fine but I’m trying to wrap the short code around the_post_thumbnail and the_excerpt of post. The short code works when I don’t include the functions I have created. Any help would be very welcome!
<?php $teamMember = new WP_Query('category_name=team&showposts=-1'); ?> <?php while ($teamMember->have_posts()) : $teamMember->the_post();?>
<?php get_template_part( 'content', 'page' ); ?>
<?php function profileThumb() {
echo the_post_thumbnail(); }
?>
<?php function profileExcerpt() {
echo the_post_thumbnail(); }
?>
<?php echo do_shortcode("[simple_tooltip content=' . profileExcerpt(); .' ]' . ' profileThumb();' . ' [/simple_tooltip]"); ?>
<?php endwhile ?>
<?php wp_reset_query(); ?>