Title: PHP inside do_shortcode
Last modified: August 22, 2016

---

# PHP inside do_shortcode

 *  [htausch](https://wordpress.org/support/users/htausch/)
 * (@htausch)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/php-inside-do_shortcode/)
 * I am needing to reference PHP several times within do_shortcode. Please go easy,
   I’m a newbie.
 *     ```
       <?php echo do_shortcode('
       	<a href="<?php the_permalink(); ?>">
       	[flippingCard]
       	[fc_front]
   
       	<?php if(has_post_thumbnail()) { the_post_thumbnail('icon-image'); } else { echo '<img src="http://fakeimg.pl/60x60/00CED1/FFF/?text=img+placeholder">';}?>
   
       	[/fc_front]
   
           [fc_back]
   
       	<?php the_title(); ?>
   
       	[/fc_back]
       	[/flippingCard]
                </a>
              ')?>
       ```
   

The topic ‘PHP inside do_shortcode’ is closed to new replies.

## Tags

 * [do_shortcode](https://wordpress.org/support/topic-tag/do_shortcode/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [htausch](https://wordpress.org/support/users/htausch/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/php-inside-do_shortcode/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
