Skip to:
Content
Pages
Categories
Search
Top
Bottom

Get the current page URL


  • theradcoza
    Participant

    @theradcoza

    I have tried using the following code to get the current URL

    global $wp;
    $current_url = home_url( add_query_arg( $_GET, $wp->request ) );

    $current_url is always null.

    The end goal is to have a banner that depends on a custom field on the member-loop page.

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Skip to toolbar