Plugin for sidebar HELP (2 posts)

  1. ssdesign
    Posted 10 years ago #

    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.


  2. mutube
    Posted 10 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.