Support

Account

Home Forums Search Search Results for 'q'

Search Results for 'q'

reply

  • An update, I’m trying to use an example from here 4. Sub custom field values
    I’ve updated REPEATER name to ‘quote’

    <?php
    
        // filter
        function my_posts_where( $where ) {
    
        	$where = str_replace("meta_key = 'quote_$", "meta_key LIKE 'quote_%", $where);
    
        	return $where;
        }
    
        add_filter('posts_where', 'my_posts_where');
    
        // vars
        $person = '"' . get_the_ID() . '"';
    
        $paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1;
    
        // args
        $args = array(
        	'posts_per_page' => 10,
            'paged' => $paged,
            'order' => 'DESC',
        	'post_type' => 'recipes',
        	'meta_query' => array(
            	array(
            		'key' => 'quote_$_person',
            		'value' => '"' . get_the_ID() . '"',
            		'compare' => 'LIKE',
            	)
            )
        );
    
        $the_query = new WP_Query( $args );
        if($the_query->have_posts() ) :
            while ( $the_query->have_posts() ) :
               $the_query->the_post();
    
               get_template_part( 'template-parts/content-recipe-card', get_post_format() );
    
            endwhile;
    
        else: ;
        endif;
    
        ?>
    
  • Here’s where I’m starting to build the form: make a list of checkboxes from previous answers and assign them to the $checkboxes[] variable.

    if ( $poll_responses->have_posts() ) :
        while ( $poll_responses->have_posts() ) :
            $poll_responses->the_post();
            if ( have_rows( 'poll_answer', get_the_ID() ) ) :
                while ( have_rows( 'poll_answer', get_the_ID() ) ) :
                    the_row();
                    // print checkboxes for each existing answer
                    echo '<input type="checkbox" name="checkboxes[]" ';
                    echo 'value="' . get_sub_field( 'answer', get_the_ID() ) . '">';
                endwhile;
            endif;
        endwhile;
        wp_reset_postdata();
    endif;
    
    // text or repeater field to add your own custom poll answer
    // (this part works fine, values added as expected, show up in list of previous answers)

    Then I save the checkbox answers and the new custom answers:

    function dutchtown_save_poll_response( $post_id )
    {
        if ( get_post_type( $post_id ) !== 'poll_response' ) : return; endif;
    	if ( is_admin() ) : return; endif;
        
    	$post = get_post( $post_id );
    
        if ( have_rows( 'poll_answer', $post_id ) ) :
            while ( have_rows( 'poll_answer', $post_id ) ) :
                the_row();
                $answer[] = get_sub_field( 'answer', $post_id );
            endwhile;
        endif;
    
        if ( ! empty( $_POST['checkboxes'] ) ) :
            for ( $i = 0; $i < count( $_POST['checkboxes'] ); $i++ ) :
                if ( $_POST['checkboxes'][$i] != '' ) :
                    add_row( 'poll_answer', array( 'answer' => $_POST['checkboxes'][$i] ) );
                endif;
            endfor;
        endif;
    }

    The custom answers show correctly when the list is refreshed. The checkbox answers get inserted into the database, but show as blank both in the new checkbox list and when I go to look at the created post in wp-admin. I’m not sure where the disconnect is—or if I’m going about this all wrong.

  • I am assuming that you want this to happen when you edit the field or if you have a field set up to allow adding new choices when editing a post.

    When ACF updates a field’s settings, just before saving the field to the DB it calls

    
    $field = apply_filters( "acf/update_field", $field );
    

    It is possible to set up a filter on this hook that will do what you want. In the filter you would need to check to make sure it’s the right field by looking at $field['key'] and then you’d need to create the logic to sort $field['choices'].

  • what do you mean by

    updated the content on WP admin for the posts

    Once data is stored in a field you cannot change the field name or change the field hierarchy. Doing so disconnect the data.

  • I doubt that this in the correct forum thread but I want to suggest an improvement. I am working with a multilanguage site with a form on the frontend and it is becoming quite difficult to change the button text, I see in the code that the default text “Add Row” is inside a translation function, but I want to use a custom text and have it translated. You could in future versions place the translation function also on the custom text eg: __ ($ field [‘button_label’]). If this is not necessary because there is a more efficient method already working, could you direct me to where I can find that information.

    Excellent complement
    Regards

  • Sorry here it is 🙂

    $(#phone-button a").attr("href", function ( index, currentvalue) {
        var url_format = currentvalue.replace(/(^\w+:|^)\/\//, "");
        $(this).attr("href", "tel:" + url_format);
      });
  • Thank you, I did end up using integers in my ultimate solution. However, I couldn’t get add_row to work, my ultimate solution was the following:

    
    function assign_internal_writer_callback($request)
    {
        $parameters = $request->get_params();
    
        $outline_task = $parameters['outline_task']; //ID for Task associated with Stage Two
        $write_task = $parameters['write_task']; //ID for Task associated with Stage Five
        $user = $parameters['user']; //User ID
        $project_set = $parameters['project_set']; //Project Set ID
    
        if ($outline_task != '' && $write_task != '' && $user != '' && $project_set != '') {
    
            update_post_meta($outline_task, 'user', $user);
            update_post_meta($write_task, 'user', $user);
    
            $team_size = get_term_meta($project_set, 'project_set_campaign_team');
    
            $new_team_size = strval(intval($team_size[0] + 1)); 
    
            //Need to follow this convention for field keys in order for them to display in UI
            $user_field_key = '_project_set_campaign_team_' . $team_size[0] . '_user';
            $role_field_key = '_project_set_campaign_team_' . $team_size[0] . '_role';
            $user_key = 'project_set_campaign_team_' . $team_size[0] . '_user';
            $role_key = 'project_set_campaign_team_' . $team_size[0] . '_role';
    
            update_term_meta($project_set, 'project_set_campaign_team', $new_team_size); //This meta field holds the number of rows in the repeater, needs to be updated +1 to display in UI
            update_term_meta($project_set, $role_key, 268);
            update_term_meta($project_set, $role_field_key, 'field_5faa2bce9fe7c');
            update_term_meta($project_set, $user_key, intval($user));
            update_term_meta($project_set, $user_field_key, 'field_5faa2c0b9fe7d');
    
            return get_term_meta($project_set);
    
        } else {
            return 'Please supply the correct request parameters: Outline Task ID, Write Task ID, Project Set ID and User ID';
        }
    }

    I’ve had several issues where I tried to use ACF methods like update_field and add_row to solve a problem, and they weren’t working. I was able to update with native WP methods like update_post_meta and update_term_meta. Is there any reason I’m unaware of not to do this?

  • I wanted to post some additional information which would actually assist in how to accomplish the original intent… “how do I query for ACF fields attached to a specific block, by block ID?” I’ve written another function which can do exactly that for you, as long as you know the block ID AND THE POST ID that you’re querying. You can use it very similar to get_field(), but with a different 3rd (and in this case, required) parameter.

    function get_field_from_block( $selector, $post_id, $block_id ) {
        // If the post object doesn't even have any blocks, abort early and return false
        if ( ! has_blocks( $post_id ) ) {
            return false;
        }
    
        // Get our blocks from the post content of the post we're interested in
        $post_blocks = parse_blocks( get_the_content( '', false, $post_id ) );
    
        // Loop through all the blocks
        foreach ( $post_blocks as $block ) {
    
            // Only look at the block if it matches the $block_id
            if ( isset( $block['attrs']['id'] ) && $block_id == $block['attrs']['id'] ) {
    
                if ( isset( $block['attrs']['data'][$selector] ) ) {
                    return $block['attrs']['data'][$selector];
                } else {
                    break;  // If we found our block but didn't find the selector, abort the loop
                }
    
            }
    
        }
    
        // If we got here, we either didn't find the block by ID or we didn't find the selector by name
        return false;
    
    }
  • I know this is an older post but I was trying to do something similar this evening and had to figure it out myself, so I thought I’d share what I did. Hopefully it can help someone else, but apologies in advance for the lack of brevity.

    Before I go any further, I also want to clarify that this is a PARTIAL reply since it only addresses the OP’s primary question… “how do I find the block ID of a particular block in a specified post?” It’s important to note that get_field('contact_block', 'block_5c8b98f36c5c7'); is NOT valid ACF code and will NOT return ACF data from a specified block ID.

    Down to business.

    What I did was utilize the parse_blocks() function in order to return an object of blocks from a particular other post. The function takes the CONTENT of a page to parse, so I did this in one line like so.

    $post_blocks = parse_blocks( get_the_content( '', false, 166 ) );

    From there you can loop through the object and look at the information you have about each block. You can quickly short-circuit based on blocks that aren’t of the type you care about, or you can look at any other information about them. For example, I made an “intro-content” block and created a single ACF field of “color” which is a simple colorpicker.

    foreach ( $post_blocks as $block ) {
        if ( 'acf/intro-content' != $block['blockName'] ) {
            continue;   // Skip this block if it's not the right block type
        }
    
        if ( isset( $block['attrs']['id'] ) ) {
            $my_block_id = $block['attrs']['id'];
            break;  // Found a hit, get out of the loop
        }
    }

    This is what the individual block object looked like according to a var_dump(), to show what WordPress knows about that block and how/why I targeted things the way I did.

    array (size=5)
      'blockName' => string 'acf/intro-content' (length=17)
      'attrs' => 
        array (size=5)
          'id' => string 'block_5fb5d249c67e8' (length=19)
          'name' => string 'acf/intro-content' (length=17)
          'data' => 
            array (size=2)
              'color' => string '#1800d3' (length=7)
              '_color' => string 'field_5fb5d169b6174' (length=19)
          'align' => string '' (length=0)
          'mode' => string 'edit' (length=4)
      'innerBlocks' => 
        array (size=0)
          empty
      'innerHTML' => string '' (length=0)
      'innerContent' => 
        array (size=0)
          empty

    Putting it all together, this was a quick function that I wrote for getting back an array of block IDs which I could filter based on block type. It also lets you choose how many you want back (so you can tell it to stop after the first one, if you wanted).

    function custom_get_acf_block_ids_from_post( $post_id, $return_count = -1, $arr_block_types = array() ) {
        // If the post object doesn't even have any blocks, abort early and return an empty array
        if ( ! has_blocks( $post_id ) ) {
            return array();
        }
    
        // If $arr_block_types is not an array, add the param as the only element of an array. This lets us pass a string if we wanted
        if ( ! is_array( $arr_block_types ) ) {
    	    $arr_block_types = array( $arr_block_types );
        }
    
        // Only check the size of $arr_block_types once. Set a boolean so we know if we're filtering by block type or not
        $filter_block_types = ( 0 == count( $arr_block_types ) ) ? false : true;
    
        // Get our blocks from the post content of the post we're interested in
        $post_blocks = parse_blocks( get_the_content( '', false, $post_id ) );
    
        // Initialize some vars before we get into the loop
        $arr_return = array();
        $found_count = 0;
    
        // Loop through all the blocks
        foreach ( $post_blocks as $block ) {
    
            // Skip this item in the loop if the current block isn't one of the block types we're interested in
            if ( $filter_block_types && ! in_array( $block['blockName'], $arr_block_types ) ) {
                continue;
            }
    
            // Confirm the block we're looking at has an ID to return in the first place
            if ( isset( $block['attrs']['id'] ) ) {
    
                // Add this block ID to the return array
                $arr_return[] = $block['attrs']['id'];
    
                // Increment our found count, and see if we've found as many results as we wanted. Return early if so
                    $found_count++;
                    if ( $found_count == $return_count ) {
                        return $arr_return;
                    }
            }
        }
    
        // If we made it all the way here, return whatever we've found
        return $arr_return;
    
    }

    Which in my case, gave me back an array with just a single result based on the page I was looking at.

    array (size=1)
      0 => string 'block_5fb5d249c67e8' (length=19)

    So there you go! How to find block ID’s from a specified post/page ID.

  • Hi all.
    I know this is an old thread now, but what did the trick for me (on WP 5.5.3 and ACF PRO 5.9.3) is just adding this to the template I’m working on:

    wp_enqueue_media();

  • ok, so i have managed to retrieve values with this code
    <?php echo get_field('field', get_queried_object()); ?>
    is this the only right way to do it in my situation?

  • is_sungular() looks at the main query and not at the current post. You cannot use is_singular() here and instead you must look at the post object yourself

    
    if ($post->post_type == 'your post type') {
      // do something
      ...
    
  • I take back the first part of my last comment. You cannot fix this by using a loop. I looked into this further for another topic. is_singular() does not look at the current posts, it looks and the main/global $wp_query.

    You must use my second option

  • Wrote an answer, but it disappeared. I’ll write again.

    I have checked on my project. Everything works. I will write how I do, compare with how you do.

    1. Create a group of fields (in my case for posts)
    2. Create a post. I fill in the created fields.
    3. open the page template for the post. I add the code

    
    $video = get_field('video_section');
    
    var_dump($video);
    

    4. I open the post and see this

    
    array(3) { ["video_link"]=> string(18) "https://my-link.com" ["video_header"]=> string(5) "Title" ["video_subheader"]=> string(8) "Subtitle" }
    

    What are you doing differently?

  • Hi!

    I have tested this on my project. Everything works. I will write as I did so that you can compare.

    1. Created a field Group of fields for the required post type (in my case for posts)
    2. Edited the post, filled in the data in the subfields
    3. In the template for the post added the code

    <? php $video = get_field('video_section');
    
    var_dump($video); ?>
    

    4. Go to the post page and see this

    
    array(3) { ["video_link"]=> string(18) "https://my-link.com" ["video_header"]=> string(5) "Title" ["video_subheader"]=> string(8) "Subtitle" }
    

    What are you doing differently?

  • Hi, my filter works if I put the name of the relationship field.

    My problem is that I have many group fields with relationship fields inside all with the name “items” so the filter applies to all these fields.

    I want to apply the filter only to the group field with the name “link_scope_pages” and in particular to its relation subfield with the name “items”.

    From various topics such as wp_query I tried to use the group name “_” name of the subfield relationship “link_scope_pages_items” but this doesn’t work.
    Here is my problem.

    At the moment I solved it with the key name of the relationship subfield (it seems to be unique), but I wanted to know if there was a solution with the names or even putting conditions inside the filter.

  • hi
    I just checked the wp databse

    and run this query
    SELECT * FROM wp_postmeta WHERE meta_key LIKE '%video%'

    and you can see the video field does have data
    see screenshot

    video field

  • I’ve been working recently with innerblocks within ACF blocks.
    Annoyingly, innerblocks creates additional markup within wp-admin which has been stuffing up my backend previews a bit due to my styling differences between the front and back end.

    I’ve been using JavaScript’s MutationObserver to detect changes to the DOM elements and then change some classes/data attributes around in such a way to make sure my styling aligns between the front and back end correctly (what a headache, but I think I’ve now gotten there).

    In my learning about MutationObserver, much more experienced people than I mentioned some concerns about performance when doing stuff like this, I still don’t know much about this, but for my usage this seems to work fine.

    Firstly I created and enqueued a wp-admin.js file to load within wp-admin which runs the following code snippets.

    I made the observer target the .interface-interface-skeleton__content class wrapping the Gutenberg editor (performance wise, I believe it’s better to have the MutationObserver target a parent closer to where the element will be, rather than going up the DOM making it look at body, for example).

    I am then looking for new block being added which I have assigned a class .flexible-content-layout.

    
    $(document).ready(function () {
    
        var target = document.querySelector('.interface-interface-skeleton__content');
    
        var observer = new MutationObserver(function (mutations) {
            mutations.forEach(function (mutation) {
                $(mutation.addedNodes).find('.flexible-content-layout').each(function () {
    
                    console.log('.flexible-content-layout detected');
    
                });
            });
        });
    
        observer.observe(target, {childList: true, subtree: true});
    
    });
    

    Furthermore, here is more detailed code snippet, where I am using another MutationObserver within the first to then detect if changes to the classes have been made.

    
    $(document).ready(function () {
    
        var target = document.querySelector('.interface-interface-skeleton__content');
    
        var observer = new MutationObserver(function (mutations) {
            mutations.forEach(function (mutation) {
                $(mutation.addedNodes).find('.flexible-content-layout').each(function () {
    
                  
                    console.log('.flexible-content-layout detected');
    
                    // Detect changes in .content-groups style
                    var observer = new MutationObserver(function (mutations) {
                        mutations.forEach(function (mutation) {
                            if (mutation.attributeName === "class") {
                                var attributeValue = $(mutation.target).prop(mutation.attributeName);
    
                                console.log(".flexible-content-layout classes changed to:", attributeValue);
    
                            }
                        });
                    });
    
                    observer.observe(self[0], {
                        attributes: true
                    });
    
                });
            });
        });
    
        observer.observe(target, {childList: true, subtree: true});
    
    });
    

    I hope that helps you or someone else.

  • Hi

    before you say that i just tried creating a new field group
    with new sub field names
    $video2 = get_field(‘video2’);

    and its var_dump also retuns null
    www\wordpress\wp-content\themes\Mediqas\front-page.php:65:null
    i feel lost :\

    i have no other fields in database with tht name

  • www\wordpress\wp-content\themes\Mediqas\front-page.php:62:null
    see this
    i re added the group few times but see same result

    but i use two other groups on same page
    and they show fine
    and this is one of the other groups
    var_dump($hero)
    shows the array

    array (size=4)
      'main_title' => string 'WELCOME TO MEDIQAS' (length=18)
      'small_title' => string 'Devoted to medicine excellence for 10 years' (length=43)
      'link_text' => string 'GET STARTED' (length=11)
      'link' => string 'http://localhost/wordpress/why-us/' (length=34)
  • This reply has been marked as private.
  • I’m not sure what is causing your issue. I just set up a test field group containing a group field with a relationship field as a sub field. The name of the relationship field is simply “relationship”. I then added an acf/fields/relationship/query/name=relationship and this filter runs as expected.

  • This is my filter that works

    function filter_relationship_acf_scope_pages( $args, $field, $post_id ) {
    
            $args = [
                'post_type' => 'page',
                'meta_query' => [
                    [
                        'key' => '_wp_page_template',
                        'value' => 'tpl-scope.php',
                    ]
                ]
            ];
    
            return $args;
        }
        add_filter('acf/fields/relationship/query/key=field_5f1b0571deda4', 'filter_relationship_acf_scope_pages', 10, 3);
  • what name should it have?

    Array
    (
        [ID] => 0
        [key] => field_5fad1c053194c
        [label] => 
        [name] => acf[field_5fad1c053194c]
        [prefix] => acf
        [type] => group
        [value] => Array
            (
                [field_5fad1f55299f4] => 
                [field_5fad1c313194d] => 1
                [field_5fad1c493194e] => Array
                    (
                        [0] => Array
                            (
                                [field_5fad1c733194f] => Emergenze
                                [field_5fad1d7e31954] => 1
                                [field_5fad643cea81d] => Array
                                    (
                                        [field_5f9c1fb8b4913] => Array
                                            (
                                                [field_5f9c211cb4914] => 6925
                                                [field_5f9c27fab4915] => Scopri di più
                                            )
    
                                    )
    
                                [field_5fad1cde31950] => Lorem ipsum
                                [field_5fad1cf131951] => Prestiamo soccorso alle popolazioni vittime di emergenze umanitarie, attraverso la distribuzione di beni primari e la ricostruzione. Oltre l’emergenza, creiamo le condizioni perché l’aiuto si trasformi in un percorso di sviluppo e autonomia per le comunità locali.
                                [field_5fad1dea31955] => 7004
                            )
    
                        [1] => Array
                            (
                                [field_5fad1c733194f] => Sviluppo
                                [field_5fad1d7e31954] => 0
                                [field_5fad643cea81d] => Array
                                    (
                                        [field_5f9c1fb8b4913] => Array
                                            (
                                                [field_5f9c211cb4914] => 
                                                [field_5f9c27fab4915] => 
                                            )
    
                                    )
    
                                [field_5fad1cde31950] => Test
                                [field_5fad1cf131951] => Prestiamo soccorso alle popolazioni vittime di emergenze umanitarie, attraverso la distribuzione di beni primari e la ricostruzione. Oltre l’emergenza, creiamo le condizioni perché l’aiuto si trasformi in un percorso di sviluppo e autonomia per le comunità locali. Prestiamo soccorso alle popolazioni vittime di emergenze umanitarie, attraverso la distribuzione di beni primari e la ricostruzione. Oltre l’emergenza, creiamo le condizioni perché l’aiuto si trasformi in un percorso di sviluppo e autonomia per le comunità locali.
                                [field_5fad1dea31955] => 7007
                            )
    
                    )
    
            )
    
        [menu_order] => 0
        [instructions] => 
        [required] => 0
        [id] => acf-field_5fad1c053194c
        [class] => 
        [conditional_logic] => 0
        [parent] => group_5fad1bae10663
        [wrapper] => Array
            (
                [width] => 
                [class] => 
                [id] => 
            )
    
        [layout] => block
        [wpml_cf_preferences] => 0
        [_name] => featured_blocks
        [_valid] => 1
        [sub_fields] => Array
            (
                [0] => Array
                    (
                        [ID] => 0
                        [key] => field_5fad1f55299f4
                        [label] => Informazioni
                        [name] => 
                        [prefix] => acf
                        [type] => message
                        [value] => 
                        [menu_order] => 0
                        [instructions] => 
                        [required] => 0
                        [id] => 
                        [class] => 
                        [conditional_logic] => 0
                        [parent] => field_5fad1c053194c
                        [wrapper] => Array
                            (
                                [width] => 
                                [class] => 
                                [id] => 
                            )
    
                        [wpml_cf_preferences] => 0
                        [message] => In evidenza mostra in alto alla pagina subito dopo la testata uno o più blocchi (con metodologia tab) contenenti titolo, descrizione, immagine ed eventuale link se reso visibile della pagina selezionata.
                        [new_lines] => wpautop
                        [esc_html] => 0
                        [_name] => 
                        [_valid] => 1
                    )
    
                [1] => Array
                    (
                        [ID] => 0
                        [key] => field_5fad1c313194d
                        [label] => Attivo
                        [name] => is_active
                        [prefix] => acf
                        [type] => true_false
                        [value] => 
                        [menu_order] => 1
                        [instructions] => 
                        [required] => 0
                        [id] => 
                        [class] => 
                        [conditional_logic] => 0
                        [parent] => field_5fad1c053194c
                        [wrapper] => Array
                            (
                                [width] => 
                                [class] => 
                                [id] => 
                            )
    
                        [message] => 
                        [default_value] => 0
                        [ui] => 1
                        [ui_on_text] => 
                        [ui_off_text] => 
                        [wpml_cf_preferences] => 0
                        [_name] => is_active
                        [_valid] => 1
                    )
    
                [2] => Array
                    (
                        [ID] => 0
                        [key] => field_5fad1c493194e
                        [label] => Blocchi in evidenza
                        [name] => items
                        [prefix] => acf
                        [type] => repeater
                        [value] => 
                        [menu_order] => 2
                        [instructions] => 
                        [required] => 1
                        [id] => 
                        [class] => 
                        [conditional_logic] => Array
                            (
                                [0] => Array
                                    (
                                        [0] => Array
                                            (
                                                [field] => field_5fad1c313194d
                                                [operator] => ==
                                                [value] => 1
                                            )
    
                                    )
    
                            )
    
                        [parent] => field_5fad1c053194c
                        [wrapper] => Array
                            (
                                [width] => 
                                [class] => 
                                [id] => 
                            )
    
                        [wpml_cf_preferences] => 0
                        [collapsed] => field_5fad1c733194f
                        [min] => 1
                        [max] => 0
                        [layout] => block
                        [button_label] => Aggiungi blocco
                        [_name] => items
                        [_valid] => 1
                        [sub_fields] => Array
                            (
                                [0] => Array
                                    (
                                        [ID] => 0
                                        [key] => field_5fad1c733194f
                                        [label] => Etichetta
                                        [name] => label
                                        [prefix] => acf
                                        [type] => text
                                        [value] => 
                                        [menu_order] => 0
                                        [instructions] => 
                                        [required] => 1
                                        [id] => 
                                        [class] => 
                                        [conditional_logic] => 0
                                        [parent] => field_5fad1c493194e
                                        [wrapper] => Array
                                            (
                                                [width] => 
                                                [class] => 
                                                [id] => 
                                            )
    
                                        [wpml_cf_preferences] => 2
                                        [default_value] => 
                                        [placeholder] => 
                                        [prepend] => 
                                        [append] => 
                                        [maxlength] => 
                                        [_name] => label
                                        [_valid] => 1
                                    )
    
                                [1] => Array
                                    (
                                        [ID] => 0
                                        [key] => field_5fad1d7e31954
                                        [label] => Link a pagina
                                        [name] => cta_is_active
                                        [prefix] => acf
                                        [type] => true_false
                                        [value] => 
                                        [menu_order] => 1
                                        [instructions] => 
                                        [required] => 0
                                        [id] => 
                                        [class] => 
                                        [conditional_logic] => 0
                                        [parent] => field_5fad1c493194e
                                        [wrapper] => Array
                                            (
                                                [width] => 
                                                [class] => 
                                                [id] => 
                                            )
    
                                        [wpml_cf_preferences] => 0
                                        [message] => 
                                        [default_value] => 0
                                        [ui] => 1
                                        [ui_on_text] => 
                                        [ui_off_text] => 
                                        [_name] => cta_is_active
                                        [_valid] => 1
                                    )
    
                                [2] => Array
                                    (
                                        [ID] => 0
                                        [key] => field_5fad643cea81d
                                        [label] => 
                                        [name] => link
                                        [prefix] => acf
                                        [type] => clone
                                        [value] => 
                                        [menu_order] => 2
                                        [instructions] => 
                                        [required] => 0
                                        [id] => 
                                        [class] => 
                                        [conditional_logic] => Array
                                            (
                                                [0] => Array
                                                    (
                                                        [0] => Array
                                                            (
                                                                [field] => field_5fad1d7e31954
                                                                [operator] => ==
                                                                [value] => 1
                                                            )
    
                                                    )
    
                                            )
    
                                        [parent] => field_5fad1c493194e
                                        [wrapper] => Array
                                            (
                                                [width] => 
                                                [class] => 
                                                [id] => 
                                            )
    
                                        [clone] => Array
                                            (
                                                [0] => group_5f9c1faa3f1a8
                                            )
    
                                        [display] => group
                                        [layout] => block
                                        [prefix_label] => 1
                                        [prefix_name] => 0
                                        [wpml_cf_preferences] => 0
                                        [_name] => link
                                        [_valid] => 1
                                        [sub_fields] => Array
                                            (
                                                [0] => Array
                                                    (
                                                        [ID] => 0
                                                        [key] => field_5f9c1fb8b4913
                                                        [label] => 
                                                        [name] => link_to_page
                                                        [prefix] => acf
                                                        [type] => group
                                                        [value] => 
                                                        [menu_order] => 0
                                                        [instructions] => 
                                                        [required] => 0
                                                        [id] => 
                                                        [class] => 
                                                        [conditional_logic] => 0
                                                        [parent] => group_5f9c1faa3f1a8
                                                        [wrapper] => Array
                                                            (
                                                                [width] => 
                                                                [class] => 
                                                                [id] => 
                                                            )
    
                                                        [wpml_cf_preferences] => 1
                                                        [layout] => block
                                                        [_name] => link_to_page
                                                        [_valid] => 1
                                                        [sub_fields] => Array
                                                            (
                                                                [0] => Array
                                                                    (
                                                                        [ID] => 0
                                                                        [key] => field_5f9c211cb4914
                                                                        [label] => Collegamento
                                                                        [name] => post
                                                                        [prefix] => acf
                                                                        [type] => post_object
                                                                        [value] => 
                                                                        [menu_order] => 0
                                                                        [instructions] => Seleziona il collegamento dall'elenco.
                                                                        [required] => 1
                                                                        [id] => 
                                                                        [class] => 
                                                                        [conditional_logic] => 0
                                                                        [parent] => field_5f9c1fb8b4913
                                                                        [wrapper] => Array
                                                                            (
                                                                                [width] => 50
                                                                                [class] => 
                                                                                [id] => 
                                                                            )
    
                                                                        [wpml_cf_preferences] => 1
                                                                        [post_type] => Array
                                                                            (
                                                                                [0] => page
                                                                            )
    
                                                                        [taxonomy] => 
                                                                        [allow_null] => 0
                                                                        [multiple] => 0
                                                                        [return_format] => object
                                                                        [ui] => 1
                                                                        [_name] => post
                                                                        [_valid] => 1
                                                                    )
    
                                                                [1] => Array
                                                                    (
                                                                        [ID] => 0
                                                                        [key] => field_5f9c27fab4915
                                                                        [label] => Etichetta pulsante
                                                                        [name] => label
                                                                        [prefix] => acf
                                                                        [type] => text
                                                                        [value] => 
                                                                        [menu_order] => 1
                                                                        [instructions] => Se il campo non viene valorizzato, viene preso automaticamente il titolo.
                                                                        [required] => 0
                                                                        [id] => 
                                                                        [class] => 
                                                                        [conditional_logic] => 0
                                                                        [parent] => field_5f9c1fb8b4913
                                                                        [wrapper] => Array
                                                                            (
                                                                                [width] => 50
                                                                                [class] => 
                                                                                [id] => 
                                                                            )
    
                                                                        [wpml_cf_preferences] => 2
                                                                        [default_value] => 
                                                                        [placeholder] => 
                                                                        [prepend] => 
                                                                        [append] => 
                                                                        [maxlength] => 
                                                                        [_name] => label
                                                                        [_valid] => 1
                                                                    )
    
                                                            )
    
                                                        [_clone] => field_5fad643cea81d
                                                        [__key] => field_5f9c1fb8b4913
                                                        [__name] => link_to_page
                                                        [__label] => 
                                                    )
    
                                            )
    
                                    )
    
                                [3] => Array
                                    (
                                        [ID] => 0
                                        [key] => field_5fad1cde31950
                                        [label] => Titolo
                                        [name] => title
                                        [prefix] => acf
                                        [type] => text
                                        [value] => 
                                        [menu_order] => 3
                                        [instructions] => 
                                        [required] => 0
                                        [id] => 
                                        [class] => 
                                        [conditional_logic] => 0
                                        [parent] => field_5fad1c493194e
                                        [wrapper] => Array
                                            (
                                                [width] => 
                                                [class] => 
                                                [id] => 
                                            )
    
                                        [wpml_cf_preferences] => 2
                                        [default_value] => 
                                        [placeholder] => 
                                        [prepend] => 
                                        [append] => 
                                        [maxlength] => 
                                        [_name] => title
                                        [_valid] => 1
                                    )
    
                                [4] => Array
                                    (
                                        [ID] => 0
                                        [key] => field_5fad1cf131951
                                        [label] => Descrizione
                                        [name] => description
                                        [prefix] => acf
                                        [type] => textarea
                                        [value] => 
                                        [menu_order] => 4
                                        [instructions] => 
                                        [required] => 1
                                        [id] => 
                                        [class] => 
                                        [conditional_logic] => 0
                                        [parent] => field_5fad1c493194e
                                        [wrapper] => Array
                                            (
                                                [width] => 
                                                [class] => 
                                                [id] => 
                                            )
    
                                        [default_value] => 
                                        [placeholder] => 
                                        [maxlength] => 
                                        [rows] => 3
                                        [new_lines] => 
                                        [wpml_cf_preferences] => 2
                                        [_name] => description
                                        [_valid] => 1
                                    )
    
                                [5] => Array
                                    (
                                        [ID] => 0
                                        [key] => field_5fad1dea31955
                                        [label] => Immagine
                                        [name] => image_desktop
                                        [prefix] => acf
                                        [type] => image_aspect_ratio_crop
                                        [value] => 
                                        [menu_order] => 5
                                        [instructions] => 
                                        [required] => 1
                                        [id] => 
                                        [class] => 
                                        [conditional_logic] => 0
                                        [parent] => field_5fad1c493194e
                                        [wrapper] => Array
                                            (
                                                [width] => 
                                                [class] => 
                                                [id] => 
                                            )
    
                                        [wpml_cf_preferences] => 0
                                        [crop_type] => aspect_ratio
                                        [aspect_ratio_width] => 567
                                        [aspect_ratio_height] => 401
                                        [return_format] => array
                                        [preview_size] => full
                                        [library] => all
                                        [min_width] => 
                                        [min_height] => 
                                        [min_size] => 
                                        [max_width] => 
                                        [max_height] => 
                                        [max_size] => 
                                        [mime_types] => 
                                        [_name] => image_desktop
                                        [_valid] => 1
                                    )
    
                            )
    
                    )
    
            )
    
        [_prepare] => 1
    )
Viewing 25 results - 6,251 through 6,275 (of 21,334 total)