Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End help with first wordpress plugin

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #27665
    cybershot
    Participant

    I am trying to write a first simple plugin. All this plugin will do is give a form in the admin area with two checkboxes, yes and no. If you select yes, then the plugin will display extra information outside of the loop. if you say no, then it hides that information.

    So what I did was make a div with the ID of wrapper and inside that div is a little info hard coded into the homepage of the site which is currently running on localhost.

    I got the plugin showing the form in the admin area, it is activated. I have tried a few methods to getting this to work, this is just the latest.

    On the homepage where I want the action to take place I have this code

    so what I was wanting was that when the no box was ticked, it would use jquery to hide the wrapper. Simple. But I can’t get the form to communicate with the homepage.

    So here is the code for the plugin, it is only 76 lines.

    http://wordpress.pastebin.com/6WbzpCsg

    below the function call on the index page, I have the wrapper with the code I want to hide.

    #77509
    hardik
    Member

    @cybershot

    i have seen your code but i guess there is problem with other things.

    read this article first and follow all it’s all steps
    http://net.tutsplus.com/tutorials/wordpress/creating-a-custom-wordpress-plugin-from-scratch/

    and if still it doesn’t setup then send me full code so i can test it and let you know

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Back End’ is closed to new topics and replies.