Support » Developing with WordPress » Plugin help for a newbie plugin writer

  • I have taken my first steps to write a plugin for my site. I have done the following so far:

    1) plugin creates a table in database when activated
    2) plugin can query and display content in the sidebar by calling the plugin’s function

    I am trying to display a form that allows the user to add data to my plugin’s table – how should i do this? is there a thread or a tutorial that you can point me to for this?

    Very much appreciated!

Viewing 4 replies - 1 through 4 (of 4 total)
  • I wrote a quick post listing some resources for writing a plugin, and to save listing them all here again, have a look at

    Thanks for the link – I’ve seen most of the sites listed on your page before, and the closest they got to man-handling a database is pulling data out, or even inserting data into the options table.

    I’m trying to write a form to let me user insert data into my own plugin’s table. Any idea please?

    when you say user then, do you mean not a backend user, but a visitor to your site?

    Visitor to my site, yes.

    For example, those plugins that allow visitors to vote via a sidebar widget, where the data of the vote is stored in database. There must be a form that allows visitors to select “Yes” or “No”, and “Submit” to enter the vote into the database. My question is, should this <form> be in a serparate PHP page, other than the main plugin php file? If so, how does wordpress know that PHP page is part of my wordpress plugin? Should I include that page within my wordpress plugin page?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Plugin help for a newbie plugin writer’ is closed to new replies.