Tag Info

New answers tagged


Below is the code you need. Your issue could be that you're not first setting up the variable $display_options to contain your options, or that you not asking if the option is set. add_action('widgets_init', 'arphabet_widgets_init'); function arphabet_widgets_init() { $options = get_option('muffin_options'); ...


I think this is what you are looking for . $cats = get_terms('category'); $blog_cats = array("all" => "All"); foreach ($cats as $cat) { $blog_cats[$cat->name] = $cat->name;} Then to show this <?php echo aq_field_select('category', $block_id, $blog_cats, $category); ?>


After did many trials and errors, finally I found the answer. Just in case anyone wondering how this working, I put the full code right here : /* == THEME OPTIONS == */ add_action("admin_menu", "setup_theme_admin_menus"); function setup_theme_admin_menus() { add_submenu_page('themes.php', 'Generate Coupons', 'Generate Coupons', ...


If there is everything OK with your template file (it should be placed in root directory of your theme) and the comment is correct then there can be one more thing... There is/was some mysterious bug, that was preventing template select from appearing. You can read about this bug here: https://core.trac.wordpress.org/ticket/18324 It's closed, because it ...

Top 50 recent answers are included