Forums

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

Home Forums Back End wordpress help

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

    I have content on the homepage of a wordpress site. I would like to add an option in the admin panel to remove that content. Kind of like a checkbox. Click to show or hide the content. I have no idea how to do this. Do you? Do you know of a tutorial? I cannot find one

    #77332
    betzster
    Participant

    What I’d do is create a plugin with an option for showing or hiding the content. Then you can create a dashboard widget or whatever you want to toggle that option. And on your homepage you just put it in something like:

    if(get_option('show_home_content')):

    Also, here’s the Plugin API from the Codex: http://codex.wordpress.org/Plugin_API

    #77334
    cybershot
    Participant

    good idea, I forgot about the codex. I will check it out and see if I can figure it out from there.

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