admin管理员组文章数量:1287255
So I've had this shortcode [site_url] working fine until a few days ago, now as I'm trying to use it again and it shows me a https//
instead of https://
.
I've tried using this function:
//Website URL shortcode [site_url]
add_action( 'init', function() {
add_shortcode( 'site_url', function( $atts = null, $content = null ) {
return site_url();
} );
} );
And I've also tried this one:
function create_site_url()
{
return home_url();
}
add_shortcode('site_url', 'create_site_url');
I've also tried to check my wp_options table and they are all correct and all have the ":"
I'm currently at a loss to why it stopped working, as I've installed no new plugins and made 0 changes. All the older shortcode applications seem to be calling the https://
, however any new applications of the same shortcode just pull http//
Anyone got any ideas? Thanks in advance.
本文标签: site urlColon is Missing In My Website Url in Wordpress Shortcode
版权声明:本文标题:site url - Colon is Missing In My Website Url in Wordpress Shortcode 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741213762a2359644.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论