WordPress.org

Support

Support » Plugins and Hacks » Plugin for sidebar HELP

Plugin for sidebar HELP

  • Hi,
    I have written a quick plugin and I have a question.

    I followed one plugin which was written for WRITE POST.

    Now following the code, I have been able to create a plugin which can display the content by using <!–mytag–> in a write post section.

    I was wondering what do I need to do so that I can use a tag in the SIDEBAR php code to display the same content in sidebar.

    thanks

Viewing 1 replies (of 1 total)
  • You just need to put code like:

    <?php your_function_name(); ?>

    In your sidebar where you want it to appear. The function name is whatever function in your plugin generates the output. If you haven’t got one (i.e. your “content” is in a variable) just do a dummy function to echo it out.

    Hope that helps.

Viewing 1 replies (of 1 total)
  • The topic ‘Plugin for sidebar HELP’ is closed to new replies.