• Hi,

    Is it possible to add dynamic class (via ACF Repeater) to My Favorites?

    I use Oxygen Builder’s repeater and if I add My Favorites’ shortcode into the repeater, if I click an of My Favorites’ icon, it will impact other icons as well.

    Thanks.

Viewing 1 replies (of 1 total)
  • Plugin Author Takashi Matsuyama

    (@takashimatsuyama)

    Hi, @gedanggoreng

    Thank you for your question.

    However, I am sorry, I’ve never used with “ACF Repeater” or “Oxygen Builder’s repeater” and with this shortcode, so I don’t know about compatibility.

    But I think that by putting their respective submission IDs in this shortcode, they could possibly be used.

    If the “post_id” attribute of the shortcode is dynamic, it would work independently for each post in the repeat.

    If you write the shortcode directly on the PHP template side, it might work.

    <?php if (shortcode_exists('ccc_my_favorite_select_button')) {
    
    echo do_shortcode('[ccc_my_favorite_select_button]');
    
    } ?>

    I hope this is helpful.

    Thanks

Viewing 1 replies (of 1 total)
  • The topic ‘Add Custom Class’ is closed to new replies.