kingchris
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: Shortcodes Not Rendering In PatternsThanks @sbser123!
I was able to get them to render with the following:
function render_acf_shortcodes_in_blocks( $block_content, $block ) { if ( has_shortcode( $block_content, 'acf' ) || has_shortcode( $block_content, 'acf_field' ) ) { $block_content = do_shortcode( $block_content ); } return $block_content; } add_filter( 'render_block', 'render_acf_shortcodes_in_blocks', 10, 2 );Forum: Plugins
In reply to: [WPvivid Backup for MainWP] Error when trying to access Remote Storage TabSounds good! Thanks for the update @tonyrobins !
Forum: Plugins
In reply to: [WPvivid Backup for MainWP] Error when trying to access Remote Storage TabHey @tonyrobins
Just came across this. Could this be causing it?
Screenshot:
https://tinyurl.com/yuwb4novForum: Plugins
In reply to: [WPvivid Backup for MainWP] Error when trying to access Remote Storage TabHi @tonyrobins
Here’s a quick Loom showing what I’m referring to. Please let me know if you have any other questions. Thanks!
https://www.loom.com/share/6896af0ddb524baba3d57553c571a7c8?sid=b61b0aff-ff2c-429d-90fc-04e2311ba93e
Hey @properlypurple ! Thanks for the reply and workaround!
I’d really like to keep them as paragraph and heading blocks so the styling can be controlled in the block editor, but using inline css or adding classes to the shortcode blocks isn’t a bad tradeoff if it means solving this problem.
Really hoping the “Connections” experiment makes it into core, so I can stop using the ACF shortcodes altogether 🙂
Forum: Plugins
In reply to: [Create Block Theme] Template Parts Missing@jordesign No worries! Thanks for your help and pointing me in the right direction!
Forum: Plugins
In reply to: [Create Block Theme] Template Parts MissingHey @jordesign, that is definitely the same issue I’m experiencing! The theme name attribute is being omitted from the template-part code during export. When I add it back to the newly exported theme, the template-parts show up. This manual fix wouldn’t be a problem if it were just one site, but I’m using this theme on many sites, so you can imagine fixing this manually each time I need to update the theme could get quite tedious. Do you know if there is a fix for this issue coming? Thanks!
Forum: Plugins
In reply to: [Create Block Theme] Template Parts MissingHey @jordesign, Gutenberg is not installed on the website I’m installing the exported theme on. As far as the website I’m exporting the theme from goes, I’ve tried exporting with the latest version of Gutenberg activated as well as with it uninstalled. I experience the issue either way.
Forum: Plugins
In reply to: [Create Block Theme] Template Parts Missing@jordesign Thanks for referencing that other thread!
I made sure the theme name that was exported is the same, but the problem persists.
The thing that’s odd about what I’m experiencing is that this is only happening on 3 of my templates. The rest are fine. What I noticed about the affected ones is that the missing template-parts don’t have the theme attribute assigned to them, which is really strange because they are there on the theme I exported from. Once I add them in, the template-parts show up. So, it definitely has something to do with the theme attribute. I’m not sure where to go from here tho. Thx!
Forum: Plugins
In reply to: [Create Block Theme] Template Parts Missing@foosantos Only using native core blocks. This is happening with all my template parts, too. Not just the header. It happens on a fresh install of WordPress with no plugins installed and only Twenty-Twenty-Three theme installed, which I delete after installing my custom block theme.
Forum: Plugins
In reply to: [Create Block Theme] Unable to expand. It is in an unsupported format@thelmachido It’s working fine for me on a remote server, just not on my local environment. My local PHP install has Libzip version 1.9.2.
Forum: Plugins
In reply to: [Create Block Theme] Unable to expand. It is in an unsupported formatHi, I’m experiencing the same issue when cloning a theme. It won’t install or expand. When I try to install it, I get the following: “The package could not be installed. PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature“. When trying to expand the ZIP I get this: “Unable to expand. it is in an unsupported format.“
No problems at all exporting the theme, just cloning it. Seems to have started happening after updating to 1.13.0.