Support

Account

Forum Replies Created

  • Hi John,

    Thanks for the advice. I totally agree with that. Since we’ve identified that it was required to increase the max_input_vars, we are right know redeveloping the field groups structure for a better approach, creating a couple of more custom post types instead and reducing the amount of fields per group.

    Cheers,

    Milton

  • Hi John,

    Thanks for that, I didn’t even consider the max_input_vars as part of the problem, but in fact it was. Increasing the limit solved the issue and ACF is now able to “update” the current field group JSON file rather than creating a new one.

    I didn’t realise my field group is that big now. Probably the only thing that makes me think it was something related to the ACF plugin was that I always got a “field group updated” successful message instead of a warning or error and the fact that it creates another JSON file.

    Anyways, thanks for the tip mate.

    Cheers,

    Milton.

  • Hi John,

    Thank you for your reply. Probably I didn’t make myself clear and you are misunderstanding the issue. I’m not trying to duplicate a “Field Group”, but I’m trying to do is duplicating a “flexible content” field inside the same field group. My intention is not to create another field group but to just duplicate a field in the same field group. I understand that creating a separate field group will create a separate JSON file, but adding a new field (by duplicating one of the existing) should update the existing one.

    Once again, the issue that I’m reporting is when you duplicate a “field” , specifically a “flexible content” field that contains repeaters. Duplicating the field and saving this field group will create a duplicated field but with some attributes lost.

    Hope this explanation is a bit more clear than the others. Try to duplicate a flexible content field inside the provided field group instead of duplicating the whole field group. In order to see the missing data, you probably will need to go the post type attached to this group field.

    Cheers,

    Milton

  • Hi John,

    Thanks for reply. I did test it with the latest version of WP and the latest version of ACF as for today. I have identified that this is happening when you want to duplicate a flexible content with one or more repeaters inside. Depending on the complexity of the flexible content field and its content, once you update the field group, the resulted duplicated content has some data lost.

    I also noticed that ACF plugin is unable to update the JSON file for the field group and instead it is creating a new one with the new flexible content on it.

    Cheers,

    Milton

  • Hi EssexPaulo,

    Not sure if this is what you are after but have you tried by modifying your search.php file on your theme to something like this:

    
    <?php
    $customers = get_posts(array(
                                'post_type' => 'customers',
                                'posts_per_page' => -1,
                                'nopaging' => true,
                                'meta_query' => array(
                                    array(
                                        'key' => 'business_type',
                                        'value' => '"' . get_search_query()  . '"',
                                        'compare' => 'LIKE'
                                    )
                                )
                            ));
    
    ?>
    
    <?php /* Loop into the customers array and display the results */ ?>
    <?php foreach($customers as $customer_post) : ?>
    
       <?php /* Show your results */ ?>
       <?php setup_postdata($customer_post); ?>
    
    <?php endforeach; ?>
    
    <?php /* Keep standard search loop for any other posts */ ?>
    <?php while (have_posts()) : the_post(); ?>
    
      <?php /* Here remains the rest of the original search.php */ ?>
    
    <?php endwhile; ?>
    

    Cheers,

    Milton

Viewing 5 posts - 1 through 5 (of 5 total)