Skip to content

Instantly share code, notes, and snippets.

@slav123
Created June 19, 2013 11:10
Show Gist options
  • Save slav123/5813531 to your computer and use it in GitHub Desktop.
Save slav123/5813531 to your computer and use it in GitHub Desktop.
wordpress, current url
<?php
global $wp;
$current_url = add_query_arg( $wp->query_string, '', home_url( $wp->request ) );
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment