Home » Topics » Priority Support » ACF customizer with Version 1.11

ACF customizer with Version 1.11

ACF Widgets Support Priority Support ACF customizer with Version 1.11

Tagged: 

This topic contains 10 replies, has 2 voices, and was last updated by  Grégoire Noyelle 2 years, 8 months ago.

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #102467

    Grégoire Noyelle
    Participant

    Hi
    The customizer stop working.
    Before I use
    `
    //* Réglage ACF widget
    // http://acfwidgets.com/support/topic/not-working-in-customizer/
    remove_action(‘init’, ‘acfw_remove_fields’);

    And it works.
    Now nothing.
    I have WP 4.7.2 and ACF Pro Version 5.5.5 and Genesis Custom.
    Thanks
    Grégoire

    #102468

    Daron Spence
    Keymaster

    Gregoire, I totally removed that function in ACFW 1.11 so that might be causing your issue…

    Try removing your fixes and see what happens.

    Cheers

    #102469

    Grégoire Noyelle
    Participant

    Hi Daron
    Thanks.
    Yes I remove it. In fact it seems to not working with ACF repeater fields. For normals ACF fields and ACF Gallery field that’s perfect. Thanks!
    Cheers,
    Grégoire

    #102474

    Daron Spence
    Keymaster

    You’re saying that a Repeater in the Customizer doesn’t work?

    #102475

    Grégoire Noyelle
    Participant

    Yes that’s correct.
    Thanks

    #102482

    Daron Spence
    Keymaster

    Grégoire, I’ve tested the repeater field with ACF 5.5.6 and ACFW 1.11 on WP 4.7.2 and everything seems to be working.

    While I was testing though, I did forget to call the_row() function before trying to output the repeater sub fields.

    < ?php 
    while ( have_rows('repeater', $acfw) ) : the_row();
    	echo get_sub_field('text') . "
    "; endwhile; ?>

    The above code is what I used to test. Can you paste your repeater code if you can’t find any obvious errors? Are there any plugins that are possibly causing a conflict? JS console errors?

    Cheers

    #102489

    Grégoire Noyelle
    Participant

    Hi Daron,
    Thanks.
    I’ve used in this code

    In get_sub_field I use your parameters. Perhaps that’s the problem.
    What do you think?

    Cheers

    #102492

    Daron Spence
    Keymaster

    Yes, that seems to be the problem.

    get_sub_field() only needs the first parameter.

    I modified your pastebin example as well.

    http://pastebin.com/gDWNkLc5

    You’ll notice I deleted most of the counting and $i variable stuff and changed the asterisk to become wrapped by a <span> tag.

    You can hide the last asterisk via CSS and it would make your PHP a bit easier to read in my opinion. Just make a comment in your PHP file to remind you.

    Cheers

    #102493

    Grégoire Noyelle
    Participant

    Hello Daron,
    If you give me an email (DM) I can make an account for you.
    I just publish in french two posts about your extension:
    Créer un widget Slick Slider sur mesure avec ACF Pro et ACF Widgets
    Créer des Widgets WordPress avec ACF Pro et ACF Widgets

    #102494

    Daron Spence
    Keymaster
    This reply has been marked as private.
    #102495

    Grégoire Noyelle
    Participant

    Hi Daron,

    You can of course translate in english.

    I try without $acfw but it change nothing.
    I try also with last-child (in css) on the .seperator class but Text Rotator seems to not work in this way. So I use the counter again.

    Thanks a lot for your support.

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

You must be logged in to reply to this topic.