1.Form Giỏ hàng [woocommerce_cart] 2. Form thanh toán [woocommerce_checkout] Form tài khoản [woocommerce_my_account] form track order [woocommerce_order_tracking] Sản phẩm nổi bật [featured_products] Sản phẩm khuyến mãi [sale_products] Các Sản Phẩm Bán Chạy Nhất [best_selling_products] Sản phẩm mới [recent_products] sản phẩm liên quan [related_products] Sản phẩm bình chọn tốt nhất [top_rated_products] Sẽ hiển thị các sản ..
Archives : Tháng mười một-2018
Code hiện thị <div class=”col-12 col-sm-12 col-md-12 ajax-content-cat”> <div class=”col-box-items-blogs”> <div class=”row”> <div class=”col-12 col-sm-12 col-md-6″> <div class=”aaaalkll-left”> <?php $wp1 = new WP_Query(array( ‘post_type’=>’post’, ‘post_status’=>’publish’, ‘cat’ => $cat, ‘posts_per_page’=> 1)); while ($wp1->have_posts()) : $wp1->the_post(); ?> <div class=”img-title-category-templates”> <div class=”img-category-templates position-relative”> <a href=”<?php the_permalink();?>”><?php the_post_thumbnail(‘full’);?></a> <span class=”position-absolute”><?php the_category();?></span> </div> <div class=”title-category-templates”> <a href=”<?php the_permalink();?>”><?php the_title();?></a> <div ..
Đây là ví dụ tạo widget hiển thị bài viết ngẫu nhiên class Random_Post extends WP_Widget { function __construct() { parent::__construct( ‘random_post’, ‘Bài ngẫu nhiên’, array( ‘description’ => ‘Widget hiển thị bài viết ngẫu nhiên’ ) ); } function form( $instance ) { $default = array( ‘title’ => ‘Tiêu đề widget’, ‘post_number’ => 10 ); ..
Phản hồi