Jess
Forum Replies Created
-
Thank you for your help! The group field worked great. This is my ACF settings for that group.
Thank you, Adam! I had to modify it a bit to also work with the ‘Skipping Using the Next’ button MU-Plugin I’m using also but it worked perfectly once I did.
If anyone needs the modified code in the future, here is mine:
Good morning Patrick,
Of course, here it is!
I did make a script to help with it but it’s quick slow at jumping pagination so I wonder if there’s a better way.
Thank you so much!
- This reply was modified 3 months, 3 weeks ago by Jess.
You guys are awesome, thank you so much! The child prefix started displaying %s. after the letter ‘q’ but it’s not the end of the world for that so I’ve removed it. I really appreciate your help! Thank you so very much!
Hi Adam, thank you so much for your help! Here are some screenshots, hopefully that makes it a bit clearer. We have the CPT and also custom categories for that CPT of ‘Locations’.
Hopefully, this album will help demonstrate the idea better:
View post on imgur.com
Thank you very much!! I really appreciate it.
Thank you Patrick, you’re seriously amazing! Thanks so much, super appreciated!
Thank you Nithin, you and the team are amazing!!
Wow, thank you so much! That code worked perfectly! I really, really appreciate it.
We also decided to add author images to show, however, I’m unable to map the field accordingly when I try updating the code. I’m not sure if it’s because it’s an upload field that it needs to be handled a little differently? Did you have any ideas for that field? Thank you so, so much for your help!
Here’s how it’s being mapped on the posts: https://i.gyazo.com/c6e055190be8a5cc6dbbfcf8f61e2a04.png
<?php add_action( 'forminator_post_data_field_post_saved', 'wpmudev_repeater_format_acf_map', 10, 4 ); function wpmudev_repeater_format_acf_map( $post_id, $field, $data, $cls ) { $prepared_data = Forminator_CForm_Front_Action::$prepared_data; if ( 460 != $prepared_data['form_id'] ) { // Please change the form ID. return; } $accordion_content = array(); $accordion_header = array(); $testimonial_text = array(); $testimonial_author = array(); $testimonial_role = array(); $testimonial_image = array(); foreach ( $prepared_data as $key => $value ) { if ( false !== strpos( $key, 'textarea-3' ) ) { $accordion_content[] = $value; } if ( false !== strpos( $key, 'text-4' ) ) { $accordion_header[] = $value; } if ( false !== strpos( $key, 'textarea-2' ) ) { $testimonial_text[] = $value; } if ( false !== strpos( $key, 'text-1' ) ) { $testimonial_author[] = $value; } if ( false !== strpos( $key, 'text-2' ) ) { $testimonial_role[] = $value; } if ( false !== strpos( $key, 'upload-2' ) ) { $testimonial_image[] = $value; } } if ( ! empty( $accordion_content ) ) { foreach ( $accordion_content as $k => $v ) { update_post_meta( $post_id, 'accordion_repeater_'.$k.'_accordion_content', $v ); } update_post_meta( $post_id, 'accordion_repeater', count( $accordion_content ) ); } if ( ! empty( $accordion_header ) ) { foreach ( $accordion_header as $k => $v ) { update_post_meta( $post_id, 'accordion_repeater_'.$k.'_accordion_header', $v ); } } if ( ! empty( $testimonial_text ) ) { foreach ( $testimonial_text as $k => $v ) { update_post_meta( $post_id, 'testimonials_'.$k.'_testimonial_text', $v ); } update_post_meta( $post_id, 'testimonials', count( $testimonial_text ) ); } if ( ! empty( $testimonial_author ) ) { foreach ( $testimonial_author as $k => $v ) { update_post_meta( $post_id, 'testimonials_'.$k.'_testimonial_author', $v ); } } if ( ! empty( $testimonial_role ) ) { foreach ( $testimonial_role as $k => $v ) { update_post_meta( $post_id, 'testimonials_'.$k.'_testimonial_role', $v ); } } if ( ! empty( $testimonial_image ) ) { foreach ( $testimonial_image as $k => $v ) { update_post_meta( $post_id, 'testimonials_'.$k.'_testimonial_image', $v ); } } } ?>
That would be awesome, thank you so much! Happy New Year!
Hi Nithin, thanks for the reply! Here is the form:
https://drive.google.com/file/d/1Jo9qIosrfshPbZvVVJ46T6NNzQqa9rjs/view?usp=sharing
Here is the FAQ config in ACF: https://i.gyazo.com/2aa16576b3c71a0124095c7a8559d04e.pngHere is the testimonial config: https://i.gyazo.com/0ac8a1f96bf6d816a0d92b8b7f504dc9.png
Appreciate your help!
Hi Adam, thank you so much for your response! I would greatly appreciate some ready-to-use code if you have the time. Unfortunately, I don’t think option 2 would work for us, but option 1 could! I can’t find the documentation for that filter myself. Thank you so much, I really appreciate it!
Thank you so much for taking the time to give me your workaround! I will try this on my site.
I have this same issue!
Forum: Plugins
In reply to: [WooCommerce] Arrow down on dropdownsHi Raif,
Thank you very much for the prompt response!
Not quite, she has two problems that she is facing. The first is when she goes to Users > Edit [profile] to update someone’s billing information or other information. However, she only has this arrow navigation trouble when editing a user profile and trying to update the Country / Region and State / County under the ‘Customer Billing Address’ & ‘Customer Shipping Address’ sections added by WooCommerce (these sections disappear when we try disabling WooCommerce). Other dropdowns on the same page are navigational by arrow keys, such as the dropdowns added by WC custom membership fields, but these two sections aren’t for some reason.
The other double-click issue arises when trying to create a new order in WooCommerce and choosing which customer to add to the order. She has to click once to open the search box, then again to select the search box to start typing. She says this only happened once she updated, so that’s why it is bothering her.
They are running WC 6.4.1.
Thank you! I understand that there might not be a fix but I promised I’d try.