WordPress.org

Ready to get started?Download WordPress

Forums

Show / Hide metabox in theme option page as per option selected (2 posts)

  1. pixelandgrain
    Member
    Posted 2 years ago #

    Hello,

    I am developing complex theme and need some you expert people help.

    I am creating now option panel which has lots of nested option, I want to visible some meta-box as per main option selection into theme option page.

    Example:
    I have 5 different column options for home page. So there are five radio buttons and I want to make meta-boxes visible only for appropriate to selected radio button. So user cant get frustrate by seeing unnecessary meta boxes.

    Here is my array for theme option page.

    array( "name" => "HomePage Layout",
    	"desc" => "Select layout for home page.",
    	"id" => $shortname."_layout",
    	"type" => "radio",
    	"options" => array("1col" => "1 column", "2_3col" => "2X3 columns", "3_3col" => "3X3 columns", "3col_links" => "3 columns links", "custom_links" => "Custom links"),
    	"std" => "1col",),

    So here I want to show only selected option's meta boxes like if user select 3x3 columns then only 3x3 meta boxes would be visible.
    I would appreciate your help.

  2. pixelandgrain
    Member
    Posted 2 years ago #

    Its really strange to wait too long for any answer posted here. Really sad to see that WordPress own forums never too supportive than where to go?

Topic Closed

This topic has been closed to new replies.

About this Topic