Give Editor Access to Custom Theme Options

The problem is that the default Editor role does not have enough capabilities to change theme options. You are allowing users with ‘moderate_comments’ capabilities to view the page. That in itself is not enough. When the user attempts to update, it fails because the user does not have the proper capabilities, hence the ‘Cheatin’ uh?’ … Read more

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

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