apply_filters with redirect_to question
In this code…
the (apply_filters(‘the_permalink’, get_permalink($post_id)) is calling the total path to the post. Such as…
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.