Select Boxes

Support General Select Boxes

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #5323
    SquareNetMediaSquareNetMedia
    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

    #5324
    Tan NguyenTan Nguyen
    Participant

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

    Cheers!

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.