how to know the url of wordpress create pages code example Example: current url wordpress global $wp; echo home_url( $wp->request )