your callback function must be like this:
function cienna_show_slider_callback() {
global $post, $product, $woocommerce; // just in case if your template file need this
ob_start();
?>
<?php woocommerce_get_template( 'archive-product.php'); ?>
<?php
$output = ob_get_contents();
ob_end_clean();
echo $output;
die();
}
Related Posts:
- Jquery Slider for profile template
- How to show “teaser” posts on blog / archive pages, otherwise full posts
- How do I make a variable available inside partials?
- How to render the single post template with the post name?
- WordPress with woocommerce custom query
- Load featured article once in a loop
- if ( is_home() && ! is_front_page() )
- Display featured products through custom loop in woocommerce on template page
- AJAX with loop filtering categories
- How to get the first image gallery of a product in woocommerce in a loop
- Is including the loop necessary for page.php? [duplicate]
- What is best way passing variables to theme templates and using them different places like widgets?
- pop-up lighbox with AJAX
- Ajax loop in sidebar to load post titles/categories
- Filtering posts by multiple taxonomies
- Ajax loop refresh on click
- Add Infinite Scroll to Ajax Loaded Category Query
- Load comments per post on click with AJAX
- Page template not displaying
- Chopping up a large ajax request of around 200 posts [closed]
- Does get_template_part pull data once in a loop?
- Loop through pages with specific template
- Post Format single-loop.php using get_template_part
- Category Ajax call
- wp alchemy multiple image uploader output images to template
- code suddenly appearing from my tempate second loop
- Problems with loop
- Get search.php results in header.php?
- WordPress Loop inside Loop?
- How do I use AJAX Query in my posts loop?
- Calling & display certain product category loop and pagination on the homepage
- Template structure
- woocommerce get_price_html not pulling in correct price
- Order archive results by post id in custom taxonomy template
- Detect if current page is front page within custom query
- Ajax Button to load more Posts into a timeline
- Default ‘post’ post type archive slug?
- Shortcode in posts called by ajax is not working
- How do I display an image before the first post of the loop when I’m using get_template_part?
- Woocommerce: How to display product price [closed]
- 404 Template customization | Want 10 recent Post on the 404.php error page apart from the error Notice
- How to check if a product is purchased within the last 365 days before displaying something
- Scrolling Posts with Ajax
- Get post offset/posts page offset in single post page (outside the loop)
- how to replace get_template_part(‘loop’,’tag’) with explicit styled version?
- Second Loop Showing Only One Post on Single Post Page
- How do I put my frontpage featured image in a page template for home.php?
- Generating a perfect loop
- get_template_part() Not Working in Loop
- Get_template_part() problem with the_content()
- Problem with Front-Page.php loading recent posts
- How can have a conditional template tag based on the main loop within a secondary loop with new WP_Query(), using get_template_part()
- Get markup for post without loading into the template
- Fetching posts from wordpress function in ajax
- excerpt not showing up
- new custom theme – posts displaying on top of one another
- How do i create a list-posts-page?
- Using jQuery .after inside loop
- Getting selection of posts based on loop variables via Ajax
- How to sort a loop after most viewed
- On click some element i want to use some template
- How to loop specific Category menu from archive page?
- Woocommerce Variable Product Dropdown for Custom Shop Template
- How do I set the Stewart Search Template to return only published posts in the result
- Is it possible to set archive.php instead of index.php to display blog?
- Using is_page_template inside loop
- Loop order issue with Ajax filter
- How to declare a variable in a loop and make it available in the template file
- $post is undefined in wordpress loop [ajax]
- Database query and get_user_meta return incorrect data
- Adding a second loop breaks everything
- Submit form for loop of products of the term with AJAX
- Ajax buttons not working properly in WooCommerce when using wc_get_template_part
- Get gallery in loop through ajax
- is it bad to copy the loop for a template?
- hide woocommerce tab if empty
- Is “the loop” a template tag?
- How to avoid appending “null” in Ajax?
- How to manually define the primary loop
- Deeply Nested Menu Loop with Twig using Timber [closed]
- Alternative layout the loop
- Cant pull in featured Image
- Template included with plugin doesn’t return all posts for custom taxonomy
- Creating a archive for taxonomy terms, not the term results
- Ajax category pagination problem
- setup_postdata in “loop-handling” php file called via $.ajax
- Secondary loop cuts off at 10 posts?
- Need a conditional to test if title of parent page matches title of child page
- get_template_part() to render single page Theme
- get all page templates
- wordpress showing all posts instead of date range
- strange parse error when including a loop template within another template
- How to implement template file and the loop
- WooCommerce custom loop pagination on front page
- WooCommerce – Checkout suddenly stops working [closed]
- AJAX in wordpress theme loop
- Same posts within a paginated page
- Undefined variable: woocommerce_loop [closed]
- How can I create an entirely new, separate display of posts?
- wordpress use single ajax in place of multiple ajax requests in a smarter way