Title: Using Plugin Shortcode in a PHP
Last modified: August 19, 2016

---

# Using Plugin Shortcode in a PHP

 *  [tucktheproducer](https://wordpress.org/support/users/tucktheproducer/)
 * (@tucktheproducer)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/using-plugin-shortcode-in-a-php/)
 * The problem I’m working with is one part square peg/round hole, and one part 
   chicken and the egg.
 * I have just started using [WP Silverlight Media Player](http://wordpress.org/extend/plugins/wp-media-player/)
   for the [test page of a website I’m designing](http://www.solanumcreations.org/pctv).
   The plan for this player is to appear on several site pages, and to appear in
   triplicate on the site’s front page (in fact, you can see the Livestream players
   I’ve put in as placeholders).
 * It’s the front page appearance that’s giving me the issue. [WP Silverlight Media Player](http://wordpress.org/extend/plugins/wp-media-player/)
   uses shortcode to allow users to insert the player, and it’s attributes, into
   a post or a page. This is fantastic for most purposes – however, the section 
   of the front page I am working with is dictated by a “featured.php” file.
 * Is there any way to tell the PHP file in the WordPress template how to understand
   the shortcode? I can infer that there should be either an inline piece of code
   that tells the theme how to use WordPress to run the code, or a header command
   that tells the PHP where to go if it contains a piece of shortcode…but I of course
   can’t confirm it.
 * Am I chasing a golden goose, or does the ability to use shortcode in a PHP exist?
   Any assistance on this would be most appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/using-plugin-shortcode-in-a-php/#post-1152836)
 * Have you checked through the plugin to see if you can call its functions directly?
 *  Thread Starter [tucktheproducer](https://wordpress.org/support/users/tucktheproducer/)
 * (@tucktheproducer)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/using-plugin-shortcode-in-a-php/#post-1152971)
 * From what I can tell, there’s no implemented way to call on the plugin directly…
   at least, that I know of. I’d admit to being a bit of a hack when it comes to
   coding – I can do a lot of improvisation, but very little raw work. So, since
   there’s no out of the box way to use the plugin except the shortcode, I’m a little
   lost at how to proceed.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Using Plugin Shortcode in a PHP’ is closed to new replies.

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [tucktheproducer](https://wordpress.org/support/users/tucktheproducer/)
 * Last activity: [16 years, 10 months ago](https://wordpress.org/support/topic/using-plugin-shortcode-in-a-php/#post-1152971)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
