WordPress.org

Ready to get started?Download WordPress

Forums

Front end plugin...How...? (2 posts)

  1. adityatiruveedhula
    Member
    Posted 6 years ago #

    Hi all.... I would like to write a front end plugin. The function of he pluing it has to fetch the products list from the database and to show on the main site with menu item in the top menu. How can i acheive this...I have developed the back end plugin to enter the products data into the data base and now i stuck up with the front end plugin....Please help me in doing this....are there any tutorials for developing the front end plugin.....Thanks in Advance.....

  2. Adam Brown
    Member
    Posted 6 years ago #

    Have you read the Plugin_API?

    Pay particular attention to the bit about hooks. If you want your plugin to display content as the body of a page or post (which is what it sounds like), you'll probably want to hook into the the_content filter.

    A standard way of doing something like that is to create a new post or page, write something like [my_awesome_plugin] in it, publish it, then write your plugin so that it replaces [my_awesome_plugin] with whatever you want.

Topic Closed

This topic has been closed to new replies.

About this Topic