Permalink Manager Pro plugin conflict with Global Block preview

I’m using the Permalink Manager Pro plugin (https://permalinkmanager.pro/), and it is preventing the Global Block preview from showing (all other parts of the builder work fine - header, footer, layout and content).

I’ve reached out to the plugin developer and am await a response, but I just wanted to see if there are any ideas/solutions on this end.

Thanks!

I got a response from the plugin developer. He fixed the conflict and will include the fix in the next plugin update.

Hello @marketfresh,

Thanks for writing to you.

Please let us know how it goes for you.

Have a great day!
Thanks

Hi @prakash_s,
I had the same problem.
The developer gave me the code to add in the functions.php to fix the error.

<?php

function bis_theme_co_support($correct_permalink, $redirect_type, $queried_object) {
    global $wp;
    
    if(isset($_GET['post_type']) && strpos($_GET['post_type'], 'cs_') !== false) {
        return false;
    }
    
    if(is_object($wp) && empty($wp->request)) { 
        return false;
    }
 
    if($redirect_type == '-') {
        return false;
    }
    
    return $correct_permalink;
}
add_filter('permalink_manager_filter_redirect', 'bis_theme_co_support', 9, 3);

Hey @LukeStephan,

Thank you for chiming in and for sharing the code. This is very much useful for use others who are experiencing the same issue.

Cheers.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.