Would really be nice ?? for buddypress
]]>Hi Peter!
Quick question – does the [blogurl] shortcode support https after switching the WordPress site to it? (I’m checking the todos to switch to HTTPS)
Thanks and greetings!
Niklas
https://www.ads-software.com/plugins/peters-blog-url-shortcodes/
]]>I just installed this plugin and tried to use it on my dev server before moving it live. However, the plugin automatically adds “http//address of blog here , when it should be https://address of blog here. Note the missing : in the first instance.
https://www.ads-software.com/plugins/peters-blog-url-shortcodes/
]]>Hello. Thanks for the code. I don’t know if you’re still maintaining the plugin, but if you are, you might want to take a look at the getSettings()
function. The 2 options you check here default to ” for a fresh install. So in order to keep using your plugin I had to modify it so ‘uploads’ defaults to the standard path if those options are empty.
public static function getSettings()
{
$blogurl_settings = blogurlShortcodes::userSettings();
// It's best not to touch this if / else statement
if( '' != get_option( 'upload_url_path' ) )
{
// This is set in Settings > Miscellaneous > Full URL path to files
$blogurl_settings['uploads'] = get_option( 'upload_url_path' );
}
else if( '' != get_option( 'upload_path' ) )
{
$blogurl_settings['uploads'] = $blogurl_settings['wordpress'] . '/' . get_option( 'upload_path' );
}
else
$blogurl_settings['uploads'] = $blogurl_settings['wordpress'] . '/wp-content/uploads';
// To define your own upload URL path (for [blogurl uploads], comment out the line below
// $blogurl_settings['uploads'] = 'https://yoursite.com/wp-content/uploads';
return $blogurl_settings;
}
}
https://www.ads-software.com/extend/plugins/peters-blog-url-shortcodes/
]]>