WordPress.org

Forums

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

  1. Usman Ali
    Member
    Posted 1 year 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,

    Usman

Topic Closed

This topic has been closed to new replies.

About this Topic