WordPress.org

Ready to get started?Download WordPress

Forums

Plugin for sidebar HELP (2 posts)

  1. ssdesign
    Member
    Posted 8 years ago #

    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

  2. mutube
    Member
    Posted 8 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

Tags

No tags yet.