WordPress.org

Ready to get started?Download WordPress

Forums

Frontier Post
redirect after post (2 posts)

  1. razon
    Member
    Posted 11 months 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 11 months 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);
    }

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.