ACF – not able to loop through flexible content field which is inside a group field
ACF – not able to loop through flexible content field which is inside a group field
ACF – not able to loop through flexible content field which is inside a group field
ACF has a built in filter for their flexible rows which you may be able to leverage/adjust for your own use on your repeater, or investigate and build your own: apply_filters( ‘acf/fields/flexible_content/layout_title’, $title, $field, $layout, $i ); Their documentation covers this here: https://www.advancedcustomfields.com/resources/acf-fields-flexible_content-layout_title/
ACF official documentation indicates it should be as simple as using have_rows() again: if ( have_rows( ‘field_1’ ) ) { while ( have_rows( ‘field_1 ‘ ) ) { the_row(); if ( have_rows( ‘field_2’ ) ) { while ( have_rows( ‘field_2’ ) ) { the_row(); $value = get_sub_field( … ); } } } } Note that … Read more
The REST API endpoint “List Posts” (e.g. GET /wp/v2/posts) does not support filtering the posts by a post meta (or custom field), therefore passing post meta parameters like meta_key and meta_value will by default do nothing. But the rest_<post type>}_query filter can be used to manually add custom meta queries to the query arguments passed … Read more
You can used ACF Pro and adding some custom code to your theme’s functions.php file. // Add ACF fields if( function_exists(‘acf_field_group’) ): acf_field_group(array( ‘key’ => ‘group_60aaf3a3f3d4a’, ‘title’ => ‘WhatsApp Fields’, ‘fields’ => array( array( ‘key’ => ‘field_60aaf3aaf3d4b’, ‘label’ => ‘WhatsApp Phone’, ‘name’ => ‘whatsapp_phone’, ‘type’ => ‘text’, ‘instructions’ => ‘Enter the WhatsApp phone number’, ‘required’ … Read more
When you use the_content() the the_content hook gets applied to the content, which is when blocks get rendered into HTML. This hook doesn’t run when using get_the_content(), so you’ll need to run it manually: $content = get_the_content(); $content = apply_filters( ‘the_content’, $content );
How do I add an ACF shortcode to a non-ACF page?
Pending posts showing category until published
Parsing value from Lottie JSON file
Filtering custom post admin listing page elements based on acf user field