Yaptığınız işi bir sayfa şablonu olarak mı yaptınız ne ile yaptınız elemantor wbp?
template part klasörüne yeni dosya oluşturdum yani sayfa şablonu olarak oluşturdum, tema yapımcısının eklentisinde kullandığı kodu alarak istediğimi yaptım hocam, teşekkürler ilginiz için
konuya googledan ulaşıp merak eden olursa kullandığım kod;
<?php
$options = array(
'show_image' => 1
,'show_label' => 1
,'show_title' => 1
,'show_sku' => 0
,'show_price' => 1
,'show_short_desc' => 0
,'show_categories' => 0
,'show_rating' => 1
,'show_add_to_cart' => 1
,'show_color_swatch' => 0
,'number_color_swatch' => 3
);
ts_remove_product_hooks_shortcode( $options );
$args = array(
'post_type' => 'product'
,'post_status' => 'publish'
,'posts_per_page' => 16
,'orderby' => 'name'
,'order' => 'asc'
,'meta_query' => WC()->query->get_meta_query()
,'tax_query' => WC()->query->get_tax_query()
);
$loop = new WP_Query( $args );
if ( $loop->have_posts() ) {
woocommerce_product_loop_start();
while ( $loop->have_posts() ) : $loop->the_post();
?>
<section <?php wc_product_class( 'product', $product ); ?> data-product_id="<?php echo esc_attr($product->get_id()); ?>">
<div class="product-wrapper">
<?php do_action( 'woocommerce_before_shop_loop_item' ); ?>
<div class="thumbnail-wrapper <?php echo esc_attr($lazy_load?'lazy-loading':''); ?>">
<a href="<?php the_permalink(); ?>">
<?php
/**
* woocommerce_before_shop_loop_item_title hook
*
* @hooked woocommerce_show_product_loop_sale_flash - 10
* @hooked woocommerce_template_loop_product_thumbnail - 10
*/
do_action( 'woocommerce_before_shop_loop_item_title' );
?>
</a>
<?php
/**
* woocommerce_shop_loop_item_title hook.
*
* @hooked woocommerce_template_loop_product_title - 10
*/
do_action( 'woocommerce_shop_loop_item_title' );
/**
* woocommerce_after_shop_loop_item_title hook
*
* @hooked woocommerce_template_loop_rating - 5
* @hooked woocommerce_template_loop_price - 10
*/
do_action( 'woocommerce_after_shop_loop_item_title' );
?>
</div>
<div class="meta-wrapper">
<?php do_action( 'woocommerce_after_shop_loop_item' ); ?>
</div>
</div>
</section>
<?php
endwhile;
woocommerce_product_loop_end();
} else {
echo __( 'No products found' );
}
wp_reset_postdata();