How to add button to top of theme customizer?

If you take a look at the source code of this part … do_action( ‘customize_controls_print_styles’ ); do_action( ‘customize_controls_print_scripts’ ); ?> </head> <body class=”<?php echo esc_attr( $body_class ); ?>”> <div class=”wp-full-overlay expanded”> <form id=”customize-controls” class=”wrap wp-full-overlay-sidebar”> <div id=”customize-header-actions” class=”wp-full-overlay-header”> <?php $save_text = $wp_customize->is_theme_active() ? __( ‘Save &amp; Publish’ ) : __( ‘Save &amp; Activate’ ); submit_button( … Read more

Can’t Auto-Update, but permissions are good?

If you’re pretty sure about that the file owner of wordpress folder is as same as that one who runs apache. (use ps aux|grep ‘httpd’ or ps aux|grep ‘apache’) Here is a lousy solution for you: function force_use_direct_fs($method,$args){ if($method != ‘direct’) $method = ‘direct’; return $method; } add_filter(‘filesystem_method’,’force_use_direct_fs’,10,2); Why Would WordPress Request FTP Credentials wp-admin/includes/file.php … Read more

Slider do not add alt attribute. Cant get alt attribute from a media library!

When I test get_the_post_thumbnail (also the_post_thumbnail) on WordPress 3.5.1, the alt attribute is added as it should be. If you look at the source, you will see that get_the_post_thumbnail uses wp_get_attachment_image which does add that alt attribute. By default, that attribute is the image file name but it can be edited from wp-admin->Media to be … Read more

User registration add user ID?

You can’t add the ID at registration because there is no ID until after the user has registered. (See a possible way around this near the bottom). You could tack on the ID after the registration with the user_register hook. function add_ID_wpse_99390($a) { global $wpdb; $user = new WP_User($a); $wpdb->query(“UPDATE {$wpdb->users} SET user_login = CONCAT(user_login,’_’,ID) … Read more

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