• 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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Have you checked through the plugin to see if you can call its functions directly?

    Thread Starter tucktheproducer

    (@tucktheproducer)

    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.