HOW TO GET CURRENT PAGE URL IN WORDPRESS

  • AUTHOR: // CATEGORY: WordPress

    No Comments

    Put this code in your WordPress Theme’s template file to get the url of current page.

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

    Comments

    comments

COMMENTS

0 Responses to How to Get current page URL in WordPress

LEAVE A REPLY

FILL THE FIELDS TO LEAVE A REPLY. Your email address will not be published.