How to use Contact Form 7 short code value in a page?

I’m a WordPress enthusiast. I am trying to accomplish something but I haven’t found a way to.

Here’s the deal, I’m trying to use the submitted values of a form I created on contact form 7 in a script I added into the same WordPress page where the form is.

I have a script that I want to insert these values into, but when I type in the CF7 shortcode like [your-name] it comes as plain text.

How do I pass these values into shortcode I can use outside of contact form 7?

How to get an array of custom blocks by block name

Scenario: I have created a custom block that outputs a list of posts, with control over number of posts, and the taxonomies where the posts can be selected from.

The custom block is nested inside a custom “row” block, and further inside a core “column” block. The registered id of the custom block is e.g. ‘xx/dyno-list’

Need: I need to extract a list of the posts that have been assigned to the custom block via grabbing the data attached to each block, e.g. an array of posts.

Perhaps using something like: wp.data.select('core/blocks').getBlockTypes('tr/dynamic-list') which does not work…

Each custom block has a unique “name” attribute, e.g. “block_one”, so I need to be able to grab the list of custom blocks, i.e. ‘xx/dyno-list’ and then grab the lists of posts within that specific block.

I need this so as to be able to “de-dupe” the posts list between custom post list blocks.

Question: How to grab a list of the custom blocks by their registered name and then by the attribute name

Cannot clone group of Custom Fields in CPT

I have my CPT, and I am trying to clone the group of Custom Fields in my metabox named as Credits.

I have these fields to be cloned each time, when the user hit on + Add Group button:

  1. Text Field
  2. TextArea Field

I have followed this link for reference -> Clone Group of Custom Fields

Now, I believe the code is right, but somehow, I can see only textfield is coming up. I have tried my best to get this working but failed. I need your help on this. I do not want to make use of any plugins for now, since code is already available, it is just that the implementation is a problem.

Code:

function gallery_credit_section( $  meta_boxes ) {     $  prefix = 'prefix-';      $  meta_boxes[] = array(         'id' => $  prefix . 'gallery-credits',         'title' => esc_html__( 'Credits', 'metabox-online-generator' ),         'post_types' => 'gallery',         'context' => 'advanced',         'priority' => 'default',         'autosave' => 'false',         'fields' => array(             array(                 'id' => $  prefix . 'gallery-advisor',                 'type' => 'group',                 'clone' => true,                 'fields' => array(                     array(                         'id' => $  prefix . 'gallery-advisor',                         'type' => 'text',                         'name' => esc_html__( 'Advisors', 'metabox-online-generator' ),                         'placeholder' => esc_html('Author Name', 'metabox-online-generator')                     ),                     array(                         'id' => $  prefix . 'gallery-about-advisor',                         'type' => 'textarea',                         'name' => esc_html__('About Advisor', 'metabox-online-generator')                     )                 )             )         )     );      return $  meta_boxes; } add_filter( 'rwmb_meta_boxes', 'gallery_credit_section' ); 

Result:

Resultant image

As you can see, no name is there for the field, plus there is no textarea field too. Please help. Thanks 🙂

Cannot clone group of Custom Fields in CPT

I have my CPT, and I am trying to clone the group of Custom Fields in my metabox named as Credits.

I have these fields to be cloned each time, when the user hit on + Add Group button:

  1. Text Field
  2. TextArea Field

I have followed this link for reference -> Clone Group of Custom Fields

Now, I believe the code is right, but somehow, I can see only textfield is coming up. I have tried my best to get this working but failed. I need your help on this. I do not want to make use of any plugins for now, since code is already available, it is just that the implementation is a problem.

Code:

function gallery_credit_section( $  meta_boxes ) {     $  prefix = 'prefix-';      $  meta_boxes[] = array(         'id' => $  prefix . 'gallery-credits',         'title' => esc_html__( 'Credits', 'metabox-online-generator' ),         'post_types' => 'gallery',         'context' => 'advanced',         'priority' => 'default',         'autosave' => 'false',         'fields' => array(             array(                 'id' => $  prefix . 'gallery-advisor',                 'type' => 'group',                 'clone' => true,                 'fields' => array(                     array(                         'id' => $  prefix . 'gallery-advisor',                         'type' => 'text',                         'name' => esc_html__( 'Advisors', 'metabox-online-generator' ),                         'placeholder' => esc_html('Author Name', 'metabox-online-generator')                     ),                     array(                         'id' => $  prefix . 'gallery-about-advisor',                         'type' => 'textarea',                         'name' => esc_html__('About Advisor', 'metabox-online-generator')                     )                 )             )         )     );      return $  meta_boxes; } add_filter( 'rwmb_meta_boxes', 'gallery_credit_section' ); 

Result:

Resultant image

As you can see, no name is there for the field, plus there is no textarea field too. Please help. Thanks 🙂

WordPress php mysql errors – errcode: 13 permission denied

I’m developing a WordPress based website using the latest XAMPP release from Oct 9 2019 with Apache 2.4.41, MySQL/MariaDB 10.4.8 and php 7.3.10 using localhost on a Windows 10 machine.

Since updating XAMPP I have been besieged with errors similar to the following:

PHP Warning: mysqli_query(): (HY000/6): Error on delete of ‘C:\xampp\tmp#sql35b0_ee_0.MAI’ (Errcode: 13 "Permission denied") in C:\xampp\htdocs\amc\wp-includes\wp-db.php on line 2007

WordPress database error Error on delete of ‘C:\xampp\tmp#sql35b0_ee_0.MAI’ (Errcode: 13 “Permission denied”) for query SHOW FULL COLUMNS FROM wp_options made by wp_reschedule_event, wp_schedule_event, _set_cron_array, update_option

I have checked the permissions of \xampp\tmp 50 times and authenticated users, system, administrators and users all have full control. I have also deleted WordPress and the associated data base and data tables several times yet the error on delete permission errors continue.

I’m seriously at a loss so any help would be greatly appreciated.

Thanks in advance

WordPress php mysql errors – errcode: 13 permission denied

I’m developing a WordPress based website using the latest XAMPP release from Oct 9 2019 with Apache 2.4.41, MySQL/MariaDB 10.4.8 and php 7.3.10 using localhost on a Windows 10 machine.

Since updating XAMPP I have been besieged with errors similar to the following:

PHP Warning: mysqli_query(): (HY000/6): Error on delete of ‘C:\xampp\tmp#sql35b0_ee_0.MAI’ (Errcode: 13 "Permission denied") in C:\xampp\htdocs\amc\wp-includes\wp-db.php on line 2007

WordPress database error Error on delete of ‘C:\xampp\tmp#sql35b0_ee_0.MAI’ (Errcode: 13 “Permission denied”) for query SHOW FULL COLUMNS FROM wp_options made by wp_reschedule_event, wp_schedule_event, _set_cron_array, update_option

I have checked the permissions of \xampp\tmp 50 times and authenticated users, system, administrators and users all have full control. I have also deleted WordPress and the associated data base and data tables several times yet the error on delete permission errors continue.

I’m seriously at a loss so any help would be greatly appreciated.

Thanks in advance

Offer optional shipping insurance to customers with minimum order of $100

I found this question: Additional, optional fee on Woocommerce Checkout that may work for me except that I would need to use a 2.5% fee and not a flat $ rate. The 2.5% fee would be calculated for each minim order sub-total of $ 100.

Can this be done using a percentage fee and a minimum order amount?

WordPress child theme not responsive on mobile screen using Bootstrap 4x

I’ve created a child theme and also enqueued Bootstrap 4.3 in it. The site works fine on desktop screen however when I reduce the screen size, the list-group and cols are not stacking up, instead, they show up as follows

enter image description here

Following is the footer code

enter image description here

Following is the function’s code

enter image description here

Can someone kindly help me out with making it responsive in small screens?