WordPress.org

Forums

Frontier Post
redirect after post (2 posts)

  1. razon
    Member
    Posted 1 year ago #

    Hi,

    Is there any way to redirect to the post itself instead of the post list page after publishing the post?

    Thanks!

    https://wordpress.org/plugins/frontier-post/

  2. razon
    Member
    Posted 1 year ago #

    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);
    }

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.