Solved by creating an Ajax function in functions.php and an Ajax.js file to insert the carousel, then destroying and reinitialising owl-carousel
Related Posts:
- Passing JSON data from WP Query into AJAX causing NULL errors
- AJAX / Read More: multiple check_ajax_referer() and wp_create_nonce() not working independentely
- Can’t search posts using WP_QUERY inside AJAX Function
- get current custom post ID by WP_Query method
- WordPress, AJAX and pre_get_posts using conditional tags
- unable to use ‘new WP_Query’ in AJAX call
- Post not populating for custom post type based on category selection
- How to get post category list as select in front-end?
- WordPress Search Ajax + Isotope + InfiniteScroll
- How do I make these combination select filters work when only one dropdown is set? They work in WordPress 5.8.2 but don’t in 5.8.3
- Load more posts using AJAX based on posts inside WP_Query
- How to call my PHP function with AJAX ? wp_query
- Ajax filter with loadmore button
- Custom Post type Ajax search results
- Include search tags and users in my search results system
- Ajax Load More or View More functionality for woocommerce category layout by template overriding
- AJAX WP_Query’s order and orderby parameters not working
- Do I require the use of nonce?
- PHP calling AJAX function that relies on passed PHP function values not working
- Looking for a better way to handle an ajax script that pulls in post data on click
- How to add default images into theme customizer image control?
- Can’t use get_results() in ajax query
- Debugging PHP object during Ajax call in WordPress
- WordPress Ajax Data problem
- Display Post co-authored in Author Page
- Access/update database with jQuery
- Passing jQuery value using Ajax to a page template
- ajax_object is not defined when ajax calls the function
- Sorting Posts | Alphabetical Order
- Page Reloads Before AJAX Request Finishes
- Why is this Ajax not working?
- Looking for most performant way to execute several similar WP queries within shortcodes
- Ajax return code 400
- How to make drop down post title
- How to use an associative array in post__in with WP_Query?
- ajax, right way to do it and make it works?
- WordPress ajax doesn’t display object method on jQuery .change() function
- Problem with custom plugin using AJAX to pull info from php file
- Call a PHP Function with Multiple Parameters that is outside the AJAX Handler
- Ajax date_query not working past the first iteration
- Is it possible to intercept all ajax requests and get the parameters and the returns?
- Exclude posts based on meta value
- Refresh table data with Ajax
- Setting value of session with Ajax not working
- Remove echo from shortcode
- How Can I use WP_Query to Only Display 1 Post from Custom Post Type if Query Returns Posts with Matching ID in Custom Field
- Ajax contact form return 0
- AJAX – Returning Two JSON Objects with One PHP Function
- admin-ajax Firing Error 400 When Logged In
- is_user_logged_in() not working in AJAX validation call
- Add Ajax Hooks and Call from Custom Template PHP
- WordPress Ajax Always returning 0
- Woocommerce with Lazy Load php and ajax
- Can I make get_users() query global?
- My jQuery Ajax form submit is still refreshing page?
- How to hide posts of a specific custom category in WordPress?
- Submitting a form, using Ajax, to run a SQL Select query based on user input from the form
- WordPress WP_Query without query GET parameters
- displaying a fall back query if there’s nothing in the post-type category
- calling admin-ajax.php from admin-ajax.php
- WordPress Custom Add To Cart Button with AJAX
- Isn’t Returning Value While Using SELECT COUNT(*) FROM {$wpdb->prefix}
- WordPress cascading dropdown selection search based on Parent Page & Child Page
- wp_query with multiple arguments with AND
- Nested Queries of decreasing specificity
- Wrong pagination results, page counter resets when navigating
- jquery & ajax getting data from php in wordpress . admin-ajax.php returns 400
- Is it possible to order posts using multiple meta queries, i.e. show posts from first meta query, then the second?
- Settings API form – submit with AJAX
- in_array not working on dev server but works on localhost
- WP query posts BUT show the most recent and one per author
- Define global custom post
- register_block_type is not working properly
- Submit remote form to wordpress REST API and save data to custom post type
- WooCommerce REST API AJAX Auth – 401 response
- AJAX numerical pagination problem in TwentyFifteen-child theme
- Filtering custom posts by using checkboxes for taxonomy in an ajax loop always gives server 500 error
- Search for single post by 2 tags
- Why my Ajax events are no longer detected after dynamic change of shortcode content
- Contactform7: display results from CURL
- ajax polling with admin-ajax.php
- Woocommerce Related Product by 2 taxonomy
- Woocommerce variable products are being added to the card on the homepage (ajax)
- A javascript function that simply runs a php function on the plugin
- WordPress 404 when using AJAX to call php function
- how use php query in AJAX jquery
- Can’t get data from audio media
- Submitting my form to the database and then redirecting to payment site
- WP_Query count of different meta key values [duplicate]
- wp_delete_comment is doing nothing
- Pass the updated value of aid from form using ajax
- Execute PHP code in Javascript onclick
- best way to communicate between php and jquery/javascript
- Data inserted in database, but ajax calls error function
- Keeping the previous get value and add another value when submitted
- Pagination in category.php not functioning
- how to display tables via ajax
- How to initialise WP_Query on the basis of a specific meta_value and continue iterating rest?
- How to sort search result by post_title, then by post_content
- How to get posts by a certain author in inner loop using outer loop variable or post title WordPress