Comments (8)
Needed to add this to make it work.
Great plugin, this is a terrible bug though.
/**
* Restore default functionlity for use with Convert-to-blocks
* https://wordpress.org/support/topic/plugin-doesnt-work-at-all-9/#post-14721403
* https://github.com/10up/convert-to-blocks/issues/54
*
*/
add_filter( 'post_type_supports_convert_to_blocks', function( $supports, $post_type ) {
// I should not have to do this - these are already enabled for the editor
$supported_cpts = array(
'news',
'form',
'curriculum',
'policy',
'linked_content',
'virtual_page',
'sidebar',
'staff_profile',
'school',
'board_meeting'
);
if ( in_array($post_type, $supported_cpts) ) {
return true;
}
return $supports;
}, 10, 2 );
from convert-to-blocks.
Attaching the screenshots linked in the original description so they're not lost if those links get broken.
from convert-to-blocks.
@terrance-orletsky-d7 for now the plugin does not provide a UI to opt additional CPTs into the conversion to blocks, but rather hooks to do so. For now you'll need to utilize those hooks to extend support to your CPTs. I'll update this from a bug
issue to an enhancement
for us to look into adding a settings for the plugin that allows selection of additional CPTs to get the convert-to-blocks support.
from convert-to-blocks.
@jeffpaul I am facing the same issue. CPTs do not load with Gutenberg anymore. But I think this is a very confusing behavior and I am not sure an UI is making that more logic. While a CPT is not set to support "Convert to Blocks", the plugin should just leave the default editor. (Gutenberg by default, Classic Editor when using Classic Editor Plugin)
Thanks and kind regards
from convert-to-blocks.
If someone wants to work on a PR to add this, we will get it through code review but this is otherwise not likely to be something we work to add in the near future.
from convert-to-blocks.
Hmmm, welll....When a plugin I install breaks expected behaviour for other plugins and WP core functionality, then I consider it a bug. Nonetheless, as you were...I left this plugin behind after that. Thanks for the feedback, good luck with it.
from convert-to-blocks.
For anyone running across this, it looks like it was duplicated in another (still open) bug report that was submitted a few months later: #57
from convert-to-blocks.
@EarthmanWeb and it looks like a workaround was noted there as well: #57 (comment) && #57 (comment)
from convert-to-blocks.
Related Issues (20)
- Add filter to modify posts query parameters
- PHP warning on new page creation / save / edit HOT 2
- The plugin hasn't been tested with the latest version of WordPress
- Release version 1.2.0 HOT 2
- Minimum PHP version in 1.2.0 is incorrect in composer.json
- Parse error caused by a comma
- Add PHP checks
- Release version 1.2.1
- Fails to convert blocks where an image has no alt text HOT 2
- The plugin hasn't been tested with the latest version of WordPress HOT 1
- Upgrade Cypress to version 13
- Post types not marked as "Supported Post Types" are forced to use the Classic Editor HOT 2
- Release version 1.2.2
- The plugin hasn't been tested with the latest version of WordPress HOT 1
- Conversion doesn't start when URL opened in browser HOT 1
- Bump WordPress and PHP minimums
- Release version 1.1.0
- unknown parameter on CLI command HOT 1
- Add a "Build release zip" GitHub Action
- Release version 1.1.1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from convert-to-blocks.