how to register / add multiple options into one field in wordpress? (1 post)

  1. usmanaliqureshi
    Posted 2 years ago #

    How can I register or add multiple options into one field. For example, we save a logo in get_options() by registering the setting and adding fields by add_settings_field() function and we output it accordingly.

    But what if we want to save multiple options into one field, like we have an option on our page called "Select your favourite colour" and there are check-boxes with different colours and user needs to select multiple colours (not a single colour) then how would we save that in WordPress options and how to output it too?

    Please help.

    Thank you,


Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 2 years ago by usmanaliqureshi
  • This topic is not resolved
  • WordPress version: 3.8.1