bloginfo(); outputs wrong urls without https on inner pages

According to documentation, get_stylesheet_directory_uri() should check for SSL while retrieving the theme directory url. Try exchanging <link rel=”shortcut icon” href=”https://wordpress.stackexchange.com/questions/307203/<?php bloginfo(“template_directory’); ?>/icons/favicon.ico”> to <link rel=”shortcut icon” href=”https://wordpress.stackexchange.com/questions/307203/<?php echo get_stylesheet_directory_uri(); ?>/icons/favicon.ico”> in your header.php file.

How to I prevent WordPress from switching external HTTP links to HTTPS?

I suspect a bad plugin, but you didn’t provide enough information. But it could be a directive in your htaccess file that is not correct. Take a look at this question/answer for a comprehensive discussion about it: https://stackoverflow.com/questions/4398951/force-ssl-https-using-htaccess-and-mod-rewrite . If that doesn’t help, provide more information about plugins and your htaccess file contents.

Get youtube link title in post title

Use the following code into your functions.php file. function change_title_yt( $post_id ) { $current_title = $_POST[‘post_title’]; $doc = new DOMDocument(); $doc->preserveWhiteSpace = FALSE; $doc->loadHTMLFile($current_title); $title_div = $doc->getElementById(‘eow-title’); $title = $title_div->nodeValue; $my_args = array( ‘ID’ => $post_id, ‘post_title’ => $title ); if ( ! wp_is_post_revision( $post_id ) ){ // unhook this function so it doesn’t loop … Read more

Changing author links on homepage to buddypress profiles – without affecting ability to link to author archive throughout the site

Rather than add your filter immediately when the functions.php file loads, find actions that you can hook onto later, when you know the context of the current request, so you can add and remove filters in a targeted way. For example, you might be able to use loop_start to only affect WPBakery output in the … Read more