Support » Plugin: Frontier Post » redirect after post

Viewing 1 replies (of 1 total)
  • Thread Starter razon

    (@razon)

    Hi,

    I have tried adding a filter after the post is published but it seems that it doesn’t work still. Do you have any possible fix I can try?

    code:

    add_filter(‘publish_post’,’redirect’);
    function redirect($post_id) {
    $permalink = get_permalink($post_id);
    $location = “http://websitename/?url=”.$permalink;
    wp_redirect($location);
    }

Viewing 1 replies (of 1 total)
  • The topic ‘redirect after post’ is closed to new replies.