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 for the test page of a website I’m designing. 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 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.
The topic ‘Using Plugin Shortcode in a PHP’ is closed to new replies.