Skip to:
Content
Pages
Categories
Search
Top
Bottom

apply_filters with redirect_to question

  • Avatar of Andrew Parris
    Good in Today
    Participant

    @goodintoday

    In this code…

    <?php is_user_logged_in() ? _e( 'You cannot reply to this topic.', 'bbpress' ) : _e( 'Want to join the conversation? Join or ‘.__(‘Login’, ‘suffusion’).’‘ ); ?>

    the (apply_filters(‘the_permalink’, get_permalink($post_id)) is calling the total path to the post. Such as…

    http://www.yoursite.com/forum/friends/i-love-my-dog

    now what I need to know is how to change the code to remove the ‘http://www.yoursite.com’ part and only return the ‘/forum/friends/i-love-my-dog’ part so that my redirect_to will redirect properly.

    Any help would be appreciated!

You must be logged in to reply to this topic.