Title: PHP within the code to read a shortcode
Last modified: August 24, 2016

---

# PHP within the code to read a shortcode

 *  [HorrorUK](https://wordpress.org/support/users/horroruk/)
 * (@horroruk)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/php-within-the-code-to-read-a-shortcode/)
 * I have a theme where I need to put a shortcode directly into the code. This would
   be ok if it was always the same shortcode, using the do shortcode function, but
   each shortcode is going to be slightly different, as it is to show a video and
   each video has its own shortcode.
 * Is there some code I can add which will then show the current shortcode being
   used?
 * The theme has a section where I add the video info (in this case a shortcode)
   and this is then placed within the page, separate from the main content.
 * Thanks.

The topic ‘PHP within the code to read a shortcode’ is closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [HorrorUK](https://wordpress.org/support/users/horroruk/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/php-within-the-code-to-read-a-shortcode/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
