AH01797: client denied by server configuration Wordpress Plugin JS Files in Apache Web server

I am having problems while trying to add a post to a Wordpress website. This site works in schematic using fastcgi, inside a subdomain like email.medialab.ufg.br. The issues seem to be related to...

Gutenberg is not saving my custom block data

I am absolutely new to Gutenberg and trying to learn it. Today I have created a custom block with multiple fields. Here is the code: const { __ } = wp.i18n; // Import __() from wp.i18n const {...

How can I add conditional control field in Inspector controls of Gutenberg?

I'm developing a countdown Block for Gutenberg. I have 7 styles in the block, So I want to show/hide some control fields in the inspector control based on the style. As far I know Gutenberg didn't...

Gutenberg meta information is saved as HTML comment in post_content field

I am very new to Gutenberg and just started learning block development. Today I have tried to create a meta field taking references of this and this. This is how I registered the meta field for my...

Use ajax data in Gutenberg InspectorControls

I am create custom Gutenberg editor block to set YouTube video Id to <button> atribute data-video="" UPDATE - Added working code to the below My function.php code // Include Css and js block...

WordPress Gutenberg, update post content programmatically

I have been starting to testing out Gutenberg editor with both ACF and custom blocks. And I have been looking around to solve my problem but I couldn't find anything about this topic (Maybe my...

How to make a JavaScript validation on WordPress Gutenberg Editor Metabox

I am creating a custom taxonomy date for a custom post type announcement on the new version of WordPress with Gutenberg. I need this taxonomy to be a mandatory field to publish the post, and I...

jquery inside wordpress ACF custom block can't select element outside of block

I have an advanced custom fields gutenberg block template like this: <article class="m04x"> <hr> <div class="row"> <div class="col-md-12"> <h4>On this site:</h4> ...

Wordpress twentyseventeen theme header.php file data get automatically deleted

Whenever I am trying to edit any page from wp admin through WPBakery Page Builder, the header.php code gets auto deleted. List of Plugins : 1.Advanced Custom Fields 2.Custom Post Type...

Custom Gutenberg richtext block outputting the HTML formatting as text on the websites front end

I am editing the (Testimonial Slider Block plugin)[https://github.com/laccadive-io/testimonials-slider-block] to allow for the custom block to have a richtext field as well as the existing...

How to access advanced custom field values within a gutenberg block?

I have a custom post type with a few advanced custom fields. I'm trying to access these custom field values from within a Gutenberg block. I've added the following to my register_post_type...

How to show specific gutenberg blocks based on page-template chosen

I am trying to make some gutenberg blocks visible on specific page-templates only, so that it is hidden if not a certain template is chosen. I know it possible with custom post types, but can't...

Create custom settings for custom Gutenberg block

I created custom Gutenberg block for social links but I would need to add input fields where user can paste the url to that social profile. Here is where I would like to put the field (same as...

Trigger Javascript function with conditionals before a block in Gutengerg (WordPress) is saved/published

I'm using Advanced Custom Fields to allow the user to set some information in a particular Custom Post Type, what i want to do is to prevent the user to update/publish the post if some of those...

How is ACF Blocks data stored in the database

I just want to know how the data from Advanced Custom Field blocks is stored in the Wordpress database? As I understand it, the way that Gutenberg works, is that on document save, all data from...

wp.data.select('core').getPostType('post-type') returns undefined in Gutenberg

I'm building a Wordpress plugin that relies on custom fields being enabled when registering a custom post type. I want to check if the custom-fields key exists (and is true) in supports in the...

Wordpress Gutenberg PluginDocumentSettingPanel not working with controls?

I want to add a custom meta field to the gutenberg document panel and used this doc. For the custom meta field I used this tutorial. The problem I have occurs when trying to put them...

Fetching custom fields in WordPress gutenberg via a getEntityRecords call

I am trying to extend getEntityRecords a bit I have custom Tax with Metadata that I need in a Block I have added the data into the API...

Can I use Javascript to update a default class in the Wordpress Editor?

In the WordPress Gutenberg Editor, I am trying to programmatically set a default class on an image block, which is applied without the user manually adding it via the 'Additional CSS' field. I...

Gutenberg repeater blocks using ESNEXT

I've been working on creating my own custom Gutenberg repeater block with a text & link input field. I've only seen ES5 samples like this and this. I've been working on creating my own version of...

Add product attribute to Woocommerce's blocks in Gutenberg

EDIT I: I have found the file where the old plugin Woocommerce Blocks sets the blocks:...

What is the best way to check WordPress Gutenberg blocks for a required field and show a notice when empty?

I know that the documentation for this is sparse, and the required field validation in Gutenberg is not what we're accustomed to in the classic editor. However, Gutenberg does provide ways to lock...

PHP Class of composer package not found

I am writing a Wordpress plugin to create custom Gutenberg blocks. I am using a composer package called Carbon Fields. But when I try to use the package I am getting an Error: Fatal error:...

How can I add and save my own custom field in the WordPress Gutenberg (block editor) panel?

I am building a portfolio and need to add a gallery field, didn't found a way to add custom field there in the screenshot, anyone know how it will be done?

Add an extra settings field to the Gutenberg cover block

I want to add an extra field to the Gutenberg cover block which lets me define a height based on a selection or dropdown. I'm already using custom styles for the block and need an extra option for...

Show preview image for custom Gutenberg blocks

I've created a batch of custom ACF gutenberg blocks and now trying to assign a preview image. Issue: Getting the preview image to show The below image here shows a paragraph component which is a...

Wordpress gutenberg editor doesn't display the post custom field

I am trying to get gutenberg block editor to show the post custom field, but it doesn't work!!! When I go to options (3 little dots on the upper right corner of screen) > preferences > custom...

Triggering the Advanced Custom Fields (ACF) 'acf/save_post' Action

I've read the ACF 'acf/save_post' documentation here: acf-save_postDocs, which states this action enables one to add additional functionally before or after saving/updating a post. I want to test...

How to use ACF fields as attributes in my custom Gutenberg block and keep them up-to-date?

We're slowly migrating our wordpress theme development process over to the Gutenberg editor and I made quit a few custom Gutenberg blocks now, either with the Wordpress Block API or with the ACF...