Daniel Richards
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Unremovable borders since last WP7.11 releaseThere is a reported issue for this problem, so you can track progress in fixing it – https://github.com/WordPress/gutenberg/issues/70211.
Seems like this can happen for some themes that use particular CSS Variable names. Hopefully updating the theme fixes it for you.
Forum: Plugins
In reply to: [Gutenberg] My Patterns Folder MissingI’m not sure how technical your are @ecabral, but it sounds like a possible issue with the REST API on your site. The newer gutenberg-style pages use the WordPress REST API to retrieve the list of patterns, the older WP admin page doesn’t use the REST API (I expect it uses WP Query directly).
I’ve seen in the past some users have issues with the REST API when they have a firewall setup too aggressively, so that could be something to check.
You can also check the network requests in your browser dev tools to see what happened to the request for patterns. Let me know if you’d like me to explain how to do that.
Forum: Plugins
In reply to: [Gutenberg] The editor has encountered an unexpected error in GutentorThis error is slightly different to the others I’ve seen, but just to let you know Gutenberg 21.1.1 has been released and may fix your problem.
Forum: Plugins
In reply to: [Gutenberg] 21.1.0 editor errorThere’s now a Gutenberg v21.1.1 release that you can update to and it should resolve the issue.
Let me know via a reply if you still have any problems!
Forum: Plugins
In reply to: [Gutenberg] Gutenberg error reportedThere’s now a Gutenberg v21.1.1 release that you can update to and it should resolve the issue.
Let me know via a reply if you still have any problems!
Forum: Plugins
In reply to: [Gutenberg] Unexpected error after updating to 21.1.0There’s now a Gutenberg v21.1.1 release that you can update to and it should resolve the issue.
Let me know via a reply if you still have any problems!
Forum: Fixing WordPress
In reply to: WordPress Shaking While in Edit ModeI haven’t experienced myself, but it was mentioned to me that this was resolved after updating the Grammarly browser extension to the latest version.
Is anyone able to confirm?Forum: Alpha/Beta/RC
In reply to: Synced patterns override – don’t display field when not filled in@thegirlinthecafe Sorry for the late reply. From what I understand, the button block should already behave like that, not showing in the frontend of your site when there’s no button text. The same is true when using a button in a pattern with overrides.
Forum: Plugins
In reply to: [Gutenberg] Fatal PHP error in v18.6.0@jetteroh Sorry for a slow reply. This should be fixed in the latest Gutenberg 18.7.1 release.
I think you’re using WordPress 6.4, and so you should know that the Gutenberg plugin will drop support for 6.4 in the not too distant future after WordPress 6.6 is released, so you may want to consider upgrading to 6.5 or 6.6.I found some more info on why this is happening here – https://core.trac.ww.wp.xz.cn/ticket/58333
Forum: Developing with WordPress
In reply to: Outside Query LoopMaybe we’ll leave it there if this is how you reply to people trying to help you.
Good luck!
Forum: Developing with WordPress
In reply to: Outside Query LoopMy block uses context provided by Query Block: “queryId”, “query”, “queryContext”. None of this contains data I need. How do you get data stored in DB out of this objects?
I think you want to use the
postIdproperty from the block context.How you fetch the post data is different different depending on whether you’re writing JS or PHP. In PHP, you can use
get_post( $context[ 'postId' ] ).For the JS part, the way I’d recommend is
useEntityProp( 'postType', postType, property , postId ), which provides an API for both reading from and writing to the properties of a post. There’s an example here – https://github.com/WordPress/gutenberg/blob/trunk/packages/block-library/src/post-title/edit.js#L40I’d still recommend starting with
ServerSideRenderfor the JS part to make the learning curve easier. It’s often easier to get something working first, and then build on the initial concepts.Also I tried to research code and found some very strange stuff. I suspect that “wp-includes/blocks” folder contain wordpress blocks. But inside each block folder there are only .css files and block.json file.
The source code for blocks is in the gutenberg project, in the
packages/block-libraryfolder.Forum: Developing with WordPress
In reply to: Enforcing default block in block directory searchI found a ticket that seems to match your situation – https://meta.trac.ww.wp.xz.cn/ticket/6735.
I also found this ticket –
https://meta.trac.ww.wp.xz.cn/ticket/6465The attached patch suggests that the
parent/ancestorproperties are used to determine the top-level block, and only a top-level block should be displayed. If a block references a parent that’s not within the plugin then it should also be considered top-level.I’d suggest commenting on the tickets mentioning your issue. Hopefully it’ll help track down why it’s not working.
Forum: Developing with WordPress
In reply to: Enforcing default block in block directory searchThe WordPress REST API seems to use the first block:
https://github.com/WordPress/wordpress-develop/blob/0276bfdd6d714810542866adf4325619b873db67/src/wp-includes/rest-api/endpoints/class-wp-rest-block-directory-controller.php#L124-L125I don’t know how the order of the blocks is defined though. It possibly matches the order that’s shown in your plugin’s description – https://ww.wp.xz.cn/plugins/infinite-scroll-block/#description.
- This reply was modified 3 years, 1 month ago by Daniel Richards.
Forum: Developing with WordPress
In reply to: WooCommerce variation image issue@gavalian I’d suggest reaching out to WooCommerce’s own support.
The support here is for general WordPress problems, and doesn’t extend to issues with plugins.