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

    Thread Starter 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)
  • The topic ‘My Custom Virtual Page in CPT doesn’t work with this plugin’ is closed to new replies.