My title won’t update

It looks like you can’t update your low accept rate either. Anyways, have you tried checking your theme’s header.php file? What is the value between the title tags? Are you using any third party plugins for SEO like WordPress SEO by Yoast? Try adding this between the title tags: <?php wp_title(“”,true); ?> You will also … Read more

Display and hide content using checkbox in Options Framework Theme

‘true’ should be ‘1’: $options[] = array( ‘name’ => __(‘Input Checkbox Name’, ‘options_framework_theme’), ‘desc’ => __(‘Check to display.’), ‘id’ => ‘example_checkbox_2’, ‘std’ => ‘1’, ‘type’ => ‘checkbox’ ); and: <?php if ( 1 == of_get_option(‘example_checkbox2’) ) { ?> <p>checked</p> <?php } else { ?> <p>unchecked</p> <?php } ?>

Retrieve uploaded image attibutes value from option tree theme options

Put this code in index.php <img class=”img-resposive” src=”https://wordpress.stackexchange.com/questions/218286/<?php $logo=get_option_tree(“logo’,”,’true’); // return src of img $id_logo = get_attachment_id_from_src($logo); // This is custom function for getting image id. $alt = get_post_meta($id_logo, ‘_wp_attachment_image_alt’, true);// get alt=”” from wordpress media. if ( function_exists( ‘get_option_tree’) ) : if( get_option_tree( ‘logo’)) : $logo; else: echo bloginfo(‘template_directory’) .’/assets/images/logo_vp.png’; // else if option … Read more

Is there a function to add additional options to the Twentyeleven option page?

You can, but currently it’s not easy. You would have to override the existing code, and re-write it to extend it with your additional options. Start here: add_action( ‘admin_menu’, ‘twentyeleven_theme_options_add_page’ ); You’d need to remove this action (in your Child Theme): remove_action( ‘admin_menu’, ‘twentyeleven_theme_options_add_page’ ); Then, you would need to duplicate the twentyeleven_theme_options_add_page() function in … Read more

Settings API settings section not appearing

The settings API can be puzzling 😉 Replace: do_settings_sections( ‘ia_section_id’ ); with do_settings_sections( ‘srchild’ ); to display your defined settings section. The general usage is: do_settings_sections( $page ); where: $page (string) (required) The slug name of the page whose settings sections you want to output. This should match the page name used in add_settings_section(). Default: … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)