Title: Shortcode to PHP
Last modified: January 4, 2019

---

# Shortcode to PHP

 *  [Ideia Marketing](https://wordpress.org/support/users/ideiamarketing/)
 * (@ideiamarketing)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/shortcode-to-php-2/)
 * Your shortcode does not work with “generic injection” of “Head, Footer and Post
   Injections” plugin.
 * Can I use PHP? How?

Viewing 1 replies (of 1 total)

 *  Plugin Author [simonpedge](https://wordpress.org/support/users/simonpedge/)
 * (@simonpedge)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/shortcode-to-php-2/#post-11055271)
 * Use the standard WordPress ‘do_shortcode()’ function:
    [https://developer.wordpress.org/reference/functions/do_shortcode/](https://developer.wordpress.org/reference/functions/do_shortcode/)
 * So for example:
    `echo do_shortcode("[slide-anything id='155']");`
    -  This reply was modified 7 years, 5 months ago by [simonpedge](https://wordpress.org/support/users/simonpedge/).

Viewing 1 replies (of 1 total)

The topic ‘Shortcode to PHP’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/slide-anything.svg)
 * [Slide Anything - Responsive Content / HTML Slider and Carousel](https://wordpress.org/plugins/slide-anything/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/slide-anything/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/slide-anything/)
 * [Active Topics](https://wordpress.org/support/plugin/slide-anything/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/slide-anything/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/slide-anything/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [simonpedge](https://wordpress.org/support/users/simonpedge/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/shortcode-to-php-2/#post-11055271)
 * Status: not resolved