I was coming to inquire about the same thing. The reason it’s not working in Gutenberg is because there’s a function in the plugin, do_meta_boxes(), that checks $context to see if the value is ‘advanced’ before adding the meta box. (The $context variable determines whether the meta box is added to the sidebar or below the WYSIWYG field.)
I’m not clear if the value ‘advanced’ is not valid in Gutenberg, or if $context itself is no longer a thing, but the references to “advanced” are what’s keeping it from working. It’s an easy fix, and I was rather surprised that recent updates to the plugin didn’t include this.
I too have been using this plugin to enhance the functionality of my site and I am concerned that it doesn’t seem to play well with Gutenberg. Please advise when this will be fixed. WP 5.0 is just around the corner!
I would like to be advised too 🙂 …
Page links to is really usefull, gutenberg is better for my client, i don’t want to make a choice …
I’ve found a fix that I will submit. Adding these lines to the is_supported_post_type( $type ) method makes the metabox draw properly in Gutenberg:
`
if ( is_object( $type ) ) {
$type = $type->id;
}
`
I can confirm that @dhuyck’s fix appears to work: the “Page Links To” section appears perfectly at the bottom of the page below the Block Editor; and not only appears, but is fully functional too.
Hi all,
The plugin is now ok with Gutenberg but I have the problem again with a CPT using CPT-UI …
It’s the exact same problem, the editor could not load …
Anyone know a fix for CPTs ?
PS : My post on CPTUI forum : https://ww.wp.xz.cn/support/topic/show-in-rest-option-give-me-a-blank-page-gutenberg-compatibility/#post-11638314
dhuyck (@dhuyck)
Where do I apply this to which file plugin.php? Do I replace or just add?
Thanks so much
I’ve found a fix that I will submit. Adding these lines to the is_supported_post_type( $type ) method makes the metabox draw properly in Gutenberg:
`
if ( is_object( $type ) ) {
$type = $type->id;
}