Support » Plugin: Permalink Manager Lite » My Custom Virtual Page in CPT doesn’t work with this plugin

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Maciej Bis

    (@mbis)

    Hi @warmsunshine826,

    Could you add this code to functions.php in your child theme directory?

    function pm_stop_redirect() {
    	global $wp_query;
    
    	if(!empty($wp_query->query_vars['fpage'])) {
    		$wp_query->query_vars['do_not_redirect'] = 1;
    	}
    }
    add_action('wp', 'pm_stop_redirect');

    Best regards,
    Maciej

    warmsunshine826

    (@warmsunshine826)

    Hi, @mbis Thanks for your prompt reply with the solution.
    that works well. 🙂
    Thanks again.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.