Custom WP Block using Inner Blocks crashes editor, doesn’t save content

I’ve finally gotten around to building a custom Gutenberg/WP Block for a project and it’s basically kicking my ass. Working with React, Node, WebPack, Gulp is all new enough to me so there’s a learning curve I have to deal with but the incomplete and inaccurate documentation from WP is making things substantially worse. (Their documentation still says to use wp.editor but reading through tickets in GitHub I learned that was deprecated and should instead be wp.blockEditor, as an example.)

SELECT rows between two datetimes when the range is dynamic

I’m trying to select rows that fall into a certain date range from my database table. The range is determined dynamically by the user. In my database I have a column called “dateAndTime”. It has dates stored into it in this format: 2021-06-01 19:37:00 I’m trying to select the rows with this: function getEventsByDateRange(){ $eventType … Read more

How to ‘clone’ select metabox options with a callback function?

Here is my metabox array( 'id' => 'all_btns', 'name' => 'Button Select', 'type' => 'select', 'options' => array( 'button' => 'Button', 'button_red' => 'Button Red', 'button_yellow' => 'Button Yellow', ), 'callback' => 'metabox_clone_options', ), I want to clone this options to another metabox array Answers: Thank you for visiting the Q&A section on Magenaut. Please … Read more

Are WordPress & PHP objectively and based on evidence going to die because the future is made of frontend rendering instead of server side rendering?

A friend called Pablo told me to learn WordPress CMS but another friend called Lucas told me to learn Strapi CMS because server side rendering and PHP in general are dying in favor of frontend side rendering with tools like react, angular or vue. I do not want your opinion because opinions are strictly forbidden … Read more