Skip to content

Instantly share code, notes, and snippets.

@bluvertigo
Created August 26, 2014 09:04
Show Gist options
  • Save bluvertigo/51819520e638ef7582cd to your computer and use it in GitHub Desktop.
Save bluvertigo/51819520e638ef7582cd to your computer and use it in GitHub Desktop.
Shortcode per inserire URL del sito e URL del child di wordpress.
function url_child_shortcode() {
return get_stylesheet_directory_uri();
}
add_shortcode('url_child','url_child_shortcode');
function url_base_shortcode() {
return get_site_url();
}
add_shortcode('url_base','url_base_shortcode');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment