Home Forums WordPress Plugins Hide My WP UserPro Profile URL Problem

This topic is: resolved
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #9139
    rea-secret
    Active
    Post count: 19

    Hi,
    On local server I’m trying HMWP. But I can’t see users’ profile pages. When I click a profile url, page redirects to homepage. I’m using this code for profile base on my themes functions.php:

    add_action('init', 'change_author_base'); 
    function change_author_base() { 
    global $wp_rewrite; 
    $author_slug='profile'; // change the name for ‘author’ 
    //here 
    $wp_rewrite->author_base=$author_slug; 
    }

    I tried to remove this code but nothing changed. On HMWP panel, I’ve change profile base and profile query to profile. But still not working. I’ve almost try all variations but urls not working. What am I missing?

    #9140
    rea-secret
    Active
    Post count: 19

    Ok I solve this. I left blank HMWP profile base and profile query fields and re-save WordPress permalink structure and it works. 🙂

    • This reply was modified 8 years, 7 months ago by rea-secret.
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.