Displaying all ACF field labels and values from a specified field-group on WooCommerce product page

I see what you’re trying to achieve. You can use ACF’s acf_get_field_group function with the title as a parameter to retrieve the field group and its ID. Try this code: /*============================================================== Create More Details tab ================================================================*/ if (class_exists(‘acf’) && class_exists(‘WooCommerce’)) { add_filter(‘woocommerce_product_tabs’, function($tabs1) { global $post, $product; $tabs1[‘rpl-‘ . sanitize_title(‘More Details’)] = [ ‘title’ => … Read more

How to find what is causing a slug-2?

Step 1: Get all the available post types. This is done with the following query global $wpdb; $query = “SELECT DISTINCT post_type FROM {$wpdb->posts}”; $results = $wpdb->get_results($query); foreach ($results as $result) { echo “‘” . $result->post_type . “‘,”; } Step 2: Use WP_Query to find the instance with the original slug: $slug = ‘support’; $args … Read more