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="https://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.