wp_nav_menu including Skype URL

I believe the esc_url function is what ultimately filters the url you enter in that field. Unfortunately, I don’t see how you could allow the skype protocol without manually editing that function in the core file wp-includes/formatting.php, which is always a bad idea. if ( !is_array($protocols) ) $protocols = array (‘http’, ‘https’, ‘ftp’, ‘ftps’, ‘mailto’, … Read more

media_sideload_image with rewritten urls?

You’re right, it’s because by default, wp_handle_sideload() requires a valid extension in the URI in order to continue processing the sideload. That is, unless your role has a capability called ‘unfiltered_upload‘, which by default is only given to admins. If it seems appropriate (and safe) for you to grant this capability to the user role … Read more

Moving a test WP site to live

You can easily update the Site Url in WP, In the general settings of the Admin section (/wp-admin/options-general.php). Be sure the set the correct URL in the ‘WordPress Address (URL)’ and ‘Site Address (URL)’ fields. You may want to check your config file (wp-config.php) too, if you need to switch databases while moving from Test … Read more

Echo URL of large version of Featured Image

Use the second parameter of wp_get_attachment_image_src(): $size. $att = wp_get_attachment_image_src( $att_ID, ‘large-thumb’ ); or $att = wp_get_attachment_image_src( $att_ID, array ( 900, 300 ) ); The size is passed to image_downsize() and there to image_get_intermediate_size(). If $size is an array WordPress will search for the best match in existing images: // from wp-includes/media.php::image_get_intermediate_size() // get the … Read more

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