How to get saved elementor template list programmatically?

Found my own answer. To get the elementor template list you can use this snippets code $args = array( ‘post_type’ => ‘elementor_library’, // ‘posts_per_page’ => 30, ‘tabs_group’ => ‘library’, ‘elementor_library_type’ => ‘page’, ); $elementor_templates = get_posts($args); Now, to display it as dropdown select element, you can iterate through elementor_templates foreach ($elementor_templates as $elementor_template) { echo … Read more

FacetWP breaks jQuery events

Okay, to answer my own question – I just had to rewrite the function and use .on(), as it listens to changes in the DOM. Like this: $(document).on( ‘click’, ‘.email’, function() { var $this = $(this); $this.parent().toggleClass(‘open’); }); Inspired by this piece of documentation: https://facetwp.com/use-jquery-on-instead-of-click/