Custom Fields
Re-Envisioned
Support General Select Boxes

This topic contains 1 reply, has 2 voices, and was last updated by  Tan Nguyen 2 years, 2 months ago.

  • Creator
    Topic
  • #5323

    SquareNetMedia
    Participant

    Hi

    I am wanting to create a Select Box using a function to get the select options, is this possible?

    array(
    						'name'    => __( 'Select', 'textdomain' ),
    						'id'      => 'select_simple',
    						'type'    => 'select',
    						'options' => $sliders,
    					),			

    The code above is what I am currently using and $sliders is the variable which holds the options but they are not coming through

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #5324

    Tan Nguyen
    Participant

    Yes, it’s possible, please check your $sliders variable, it should be an array.

    Cheers!

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.