• Hi everyone,

    I am using WordPress 3.01 running Thesis 17 as my theme. It is self-hosted. The site is not yet live as I am developing it on my laptop using a local copy of Apache.

    I am creating a custom blog “page” template to allow me to format the appearance of the blog “page” any way I want. The problem is that I have not been able to duplicate the functionality of the plugins I have installed into the code of my custom template.

    Normally, when using the custom template that comes with Thesis (or perhaps WordPress), plugins will add code to the mix such that the resulting output file served up will have their code added. For example a site I am working on has an embedded Flash header. So the kimili_embedd plugin adds some Flash related Javascript into the served up page.

    Since my custom blog “page” template is doing everything apart from the way WordPress/Thesis normally do things I need to somehow pull the code produced by this (or any other plugin) into my template code.

    How do I do this?

    I know for example that the kimilli_embedd plugin uses an action like so…

    add_action( (preg_match(“/(\/\?feed=|\/feed)/i”,$_SERVER[‘REQUEST_URI’])) ? ‘template_redirect’ : ‘plugins_loaded’, ‘KimiliFlashEmbed’ );

    I can add that line into my template but it does nothing or seemingly does nothing.

    How do I get this plugin to insert it’s code? Some of the code is as follows for example…

    <script type=”text/javascript” charset=”utf-8″>

    /**
    * Courtesy of Kimili Flash Embed – Version 2.1.5
    * by Michael Bester – http://kimili.com
    */

    (function(){
    try {
    // Registering Statically Published SWFs
    swfobject.registerObject(“fm_chefchops_main_510688456″,”8.0.0”);
    } catch(e) {}
    })();
    </script –>

    The above code goes into the head section of the served up file.

    Any suggestions or input would be appreciated. Better yet any link to a web site page talking about exactly this type of thing would be great. I have Googled and Googled and found almost nothing on this topic.

    Thanks.

    Carlos

  • The topic ‘Accessing plugin functionality from inside PHP code?’ is closed to new replies.