wordpress get url of current page code example Example: current url wordpress global $wp; echo home_url( $wp->request )