WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Custom checkbox options for posts (4 posts)

  1. doorcowebie
    Member
    Posted 3 years ago #

    I'm working on a website in which there will be a list of lodging businesses. We wanted to add a custom metabox, taxonomy or whatever that would have 3 options to check for each business: open year-round, pet-friendly and wi-fi available. I was thinking a checkbox for each would be easiest for people to add/update those options for each business.

    I was also thinking that for each of the checkboxes selected, it would display an image rather than text.

    Any recommendations on the best way to add this feature for each listing, be it with code or a plugin? I'm not super familiar with php but have been able to do some customizing of themes.

  2. Rev. Voodoo
    Volunteer Moderator
    Posted 3 years ago #

    http://voodoopress.com/2011/04/expanding-our-back-end-post-meta-boxes-with-dropdowns/

    Is how I added dropdowns as meta box to the post screen. I'm sure there are plugins out there, I just avoid them.

    You may be able to adapt that to use checkboxes or whatever, as the html to change is fairly simple and can be founf on google

    I will be adding posts to that site soon about further meta box customization (radios, checks, etc)

  3. doorcowebie
    Member
    Posted 3 years ago #

    Thanks Voodoo, I was able to adapt what you had done to the site I'm working on and display an image if given a "yes" value for each of the dropdowns.

  4. Rev. Voodoo
    Volunteer Moderator
    Posted 3 years ago #

    I'm glad you were able to get there from what I posted!!

Topic Closed

This topic has been closed to new replies.

About this Topic