How to Create Repeater Elements Using Visual Composer API

How to Create Repeater Elements Using Visual Composer API
61 Views

Learn how to create repeater fields for custom element of Visual Composer & WP Bakery. To achieve this, we need to write 2 functions. First one for create new element, Second one for add shortcode.

function will be hooked to these specific action:

  • vc_before_init

The code

Displaying Fields Values on the Frontend with shortcode.

Visual Composer & WP Bakery are based on shortcode. So we have to create shortcode with base value. On above code base value is box_repeater so shortcode will like below. You need to add the following function to functions.php file.

Was this article helpful?
YesNo

1 comment

  1. A motivating discussion is definitely worth comment. I do think that you need to
    publish more about this issue, it might not be
    a taboo matter but generally people don’t speak about such issues.
    To the next! Cheers!!

Leave a comment

Your email address will not be published.