Support » Plugin: Based On Post » [Plugin: Based On Post] Need a template tage for the widget please

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author MelvinSoftware

    (@melvinsoftware)

    Thanks for the Request. I’ve just updated the plugin so that there is a Template Tag available now.

    Add this to one of your PHP files in the location that you want the data to show.

    <?php msbop_template_tag(); ?>

    Thank-you very much for adding this in. Can I politely suggest you use

    <?php
    if (function_exists('FUNCTION NAME')) {
     FUNCTION_NAME();
    }
    ?>

    As this prevents errors if the plugin is deactivated

    re http://codex.wordpress.org/Managing_Plugins#Theme_Changes

    Plugin Author MelvinSoftware

    (@melvinsoftware)

    Thank you For the Tip, houseofstrauss,

    I did a bit of research on my own on this, and discovered that as an alternative, using Hooks seemed an even better (cleaner) way to do this. I updated the Plugin (though the update was so small I didn’t update the version number). As a result, you can use the following code in your template instead:

    <?php do_action( 'msbop_template_tag' ); ?>

    Great! thanks for going further on that.

    Plugin Author MelvinSoftware

    (@melvinsoftware)

    You’re very welcome!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Based On Post] Need a template tage for the widget please’ is closed to new replies.