Activated this plugin and enabled blocks feature for bbPress forum topics. After activating, the edit page for any forum topic not opening and instead showing a blank page
]]>Hello, is it possible to somehow detect the quantity of images in a classic gallery and convert them accordingly for example in many posts I have just two pics and WP default puts them in two columns in one row and it needs to be automatically converted in the two rows one, below other to be bigger, right? For three images in the gallery, it would be great to sort in two rows – two images up and one bigger below. For galleries with 4+ images, the plugin works great! It would really be great if you could add that function.
]]>Hey guys, I have a multisite setup and I need convert pages and posts to blocks for all sites, could you please clarify is it possible to do ?
]]>Do you offer a plugin version that works with PHP Version 7.4.33.5?
]]>When is https://www.ads-software.com/support/plugin/convert-to-blocks/ likely to be tested with wp 6.5.2? Thanks.
]]>As per the title, I’m wondering if this works ok while using the WordPress (android) app.
TIA
]]>I reverted the site back to the default Twenty Twenty Three theme and turned off all of my plugins, but still when I go in cPanel and upgrade to 8.0 or 8.1 version of PHP the entire site crashes with an error claiming I don’t have Mysqli installed (which I do).
So I am just wondering if anyone has been able to use this plugin since they restricted it to 8.0. I am not sure how it would be possible to do so, since even on the most basic settings WordPress crashes.
]]>Just a heads up that this plugin no longer works on servers running anything lower than php 8. Block requirements say 7.4 or higher. Your convert-to-blocks.php specifies 8.
]]>Hello,
the update to 1.2.0 causes an PHP Parse error: syntax error, unexpected ‘)’ in /wp-content/plugins/convert-to-blocks/includes/ConvertToBlocks/Settings.php on line 260
…because there is a comma too much.
The correct code will be:
printf(
esc_html__( 'A filter hook (post_type_supports_convert_to_blocks) is already active.', 'convert-to-blocks' )
);
Best regards,
Ben
This issue has already been mentioned here in this ticket. However, let me repeat that after activating this plugin, you will lose the Gutenberg editing feature on all post types except “post” and “page”.
I had the same issue and discovered the convert_to_blocks_default_post_types
hook, where you can pass a list of post types the plugin should work on, which are the same post types where you will have Gutenberg. In my case, I simply added to my functions.php
file:
add_filter( 'convert_to_blocks_default_post_types', fn( $types ) => [...$types, 'category-page'], 10 );
Otherwise, I see that in the next versions it will be an option that we can adjust from the admin panel.
]]>Hi there!
Before you create your own thread on these forums, please note that the Convert to Blocks plugin is marked as Stable support:
10up is not planning to develop any new features for this, but will still respond to bug reports and security concerns. We welcome PRs, but any that include new features should be small and easy to integrate and should not include breaking changes. We otherwise intend to keep this tested up to the most recent version of WordPress.
Given the above support note, we do not intend to be regularly active on these support forums and will instead keep a closer eye on bugs or security reports within the GitHub repository. Even with the Convert to Blocks plugin being under Stable support, there are several ways in you can find the answers to your questions:
Thanks,
Team 10up.
Is there a way to to this function in bulk without having to open every single post?
]]>Still testing the plugin in an old and big blog.
On posts with galleries, instead of leaving the code as:
[gallery link="file" ids="11952,11954,11956,11958,11960,11962,11964,11966,11968,11970,11972,11974"]
It is transformed into an html block like this inside the database:
<!-- wp:gallery {"ids":[11952,11954,11956,11958,11960,11962,11964,11966,11968,11970,11972,11974],"columns":3,"linkTo":"file"} -->
<figure class="wp-block-gallery columns-3 is-cropped"><ul class="blocks-gallery-grid"><li class="blocks-gallery-item"><figure><a href="https://localhost/wp-content/uploads/2021/06/IMAGE.jpg"><img src="https://localhost/wp-content/uploads/2021/06/IMAGE.jpg" alt="" data-id="11952" class="wp-image-11952"/></a></figure></li><li class="blocks-gallery-item"><figure><img data-id="11954" class="wp-image-11954"/></figure></li><li class="blocks-gallery-item"><figure><img data-id="11956" class="wp-image-11956"/></figure></li><li class="blocks-gallery-item"><figure><img data-id="11958" class="wp-image-11958"/></figure></li><li class="blocks-gallery-item"><figure><a href="https://localhost/wp-content/uploads/2021/06/IMAGE.jpg"><img src="https://localhost/wp-content/uploads/2021/06/IMAGE.jpg" alt="" data-id="11960" class="wp-image-11960"/></a></figure></li><li class="blocks-gallery-item"><figure><img data-id="11962" class="wp-image-11962"/></figure></li><li class="blocks-gallery-item"><figure><img data-id="11964" class="wp-image-11964"/></figure></li><li class="blocks-gallery-item"><figure><img data-id="11966" class="wp-image-11966"/></figure></li><li class="blocks-gallery-item"><figure><img data-id="11968" class="wp-image-11968"/></figure></li><li class="blocks-gallery-item"><figure><img data-id="11970" class="wp-image-11970"/></figure></li><li class="blocks-gallery-item"><figure><img data-id="11972" class="wp-image-11972"/></figure></li><li class="blocks-gallery-item"><figure><img data-id="11974" class="wp-image-11974"/></figure></li></ul></figure>
<!-- /wp:gallery -->
Would be nice if the gallery stayed the same.
Thanks
]]>Hello,
this Plugin disables the Gutenberg on editing reusable blocks:
/wp-admin/post-new.php?post_type=wp_block
The problem seems, this false will be returned in case of reusable blocks:
https://github.com/10up/convert-to-blocks/blob/develop/includes/ConvertToBlocks/ClassicEditorSupport.php#L49
Can you please change this behavior?
Best regards,
Ben
Hi there,
While this seems to catch SOME Classic Editor blocks, it doesn’t seem to catchy as many as I’d like. (I even tried hacking it just a tad to increase the max depth, but it didn’t seem to help.)
Here is a basic example of post markup that I’d expect this plugin to “Convert to Blocks” automatically when loading the edit post screen (unless I’m misunderstanding something).
<!-- wp:columns -->
<div class="wp-block-columns"><!-- wp:column -->
<div class="wp-block-column"><!-- wp:freeform -->
<p>I am in the left column</p>
<!-- /wp:freeform --></div>
<!-- /wp:column -->
<!-- wp:column -->
<div class="wp-block-column"><!-- wp:freeform -->
<p>And I, the right.</p>
<!-- /wp:freeform --></div>
<!-- /wp:column --></div>
<!-- /wp:columns -->
If you make a post with just this content, then activate the plugin and edit this post, it doesn’t automatically run “Convert to blocks” (and no JS errors appear).
WP 5.7.2
Any thoughts?
Thanks much!
]]>Hi,
First off, thanks for the plugin, this is exactly what I was looking for — if it worked…
I have close to 800 posts, all made in the times before Gutenberg, which I’d like to convert to blocks so I don’t have to do so manually whenever I open a post.
Those posts are in a custom post type with 'show_in_rest' => true
. However, and here comes the thing I don’t understand: When I activate your plugin, all posts of this custom post type are being switched back to the classic editor. I was expecting a button or something where I can batch-convert all posts into blocks, but that doesn’t seem to be the case.
In fact, I’ve not found a way to turn any classic posts into block-style posts.
Do I use your plugin wrongly, perhaps? I’m using WP v5.6 since v5.6 > makes Gutenberg unusable due to JS errors.
Thanks,
Kolja
]]>Great plugin. But I noticed one possible inconsistency today.
When I visit The All Posts screen in my Admin section, there is a very helpful column showing which posts are still using the Classic Editor and which are using the Block Editor. But the All Pages screen doesn’t have that column.
I think the difference is down to this plugin. Is it deliberate or an error? If it’s something I’ve done on my own site (ie not down to the plugin), I’d be grateful for any suggestions where I should look to fix it.
]]>