Xóa bỏ /category/ và slug category cha khỏi đường dẫn category
Xóa bỏ /category/ và slug category cha khỏi đường dẫn category
Xóa bỏ /category/ và slug category cha khỏi đường dẫn category
the_post_thumbnail( 'thumbnail' ); Cấu hình tỉ lệ ảnh đại diện: Cài đặt => Thư viện (tiếng anh không nhớ lắm ^^) Bulild lại ảnh đại diện, chúng ta sử dụng…
Hàm này lấy chuẩn ảnh woocommerce thumbnail khi sản phẩm hiển thị trên trang chủ, danh mục sản phẩm, wiget….. the_post_thumbnail( 'shop_catalog' ); Cấu hình tỉ lệ ảnh đại…
Xóa bỏ product-category và toàn bộ slug của danh mục cha khỏi đường dẫn của Woocommerce Tham khảo bài viết: https://levantoan.com/xoa-bo-product-category-va-toan-bo-slug-cua-danh-muc-cha-khoi-duong-dan-cua-woocommerce/ https://levantoan.com/huong-dan-xoa-product-product_cat-trong-duong-dan-cua-woocommerce/ http://support.vietmoz.info/bo-tien-to-san-pham-va-danh-muc-tren-url-cua-woocommerce Mặc định chúng ta có…
Bộ theme Basic đầy đủ tính năng cho a e. Cài sẵn bộ ACF Pro bản mới nhất tại thời điểm này Tích hợp đa ngôn ngữ Tích…
[php] /** * Create a taxonomy * * @uses Inserts new taxonomy object into the list * @uses Adds query vars * * @param string Name of taxonomy…
[php] /** * Registers a new post type * @uses $wp_post_types Inserts new post type object into the list * * @param string Post type key, must not…
[php] $all_tags = get_tags(); $tag_id = array(); foreach( $all_tags as $tag ) { $tag_id[] = $tag->term_id; } $args = array( ‘numberposts’ => 5, ‘tag__in’ => $tag_id ); $posts…
[php] add_filter( ‘woocommerce_product_tabs’, ‘flwoo_new_product_tab’ ); function flwoo_new_product_tab( $tabs ) { $tabs[‘description’][‘title’] = ‘Thông tin’; $tabs[‘tt_tab’] = array( ‘title’ => __( ‘Hướng dẫn thanh toán’, ‘woocommerce’ ), ‘priority’ =>…
[php] $args = array( ‘numberposts’ => -1, ‘post_type’ => ‘event’, ‘meta_query’ => array( ‘relation’ => ‘OR’, array( ‘key’ => ‘location’, ‘value’ => ‘Melbourne’, ‘compare’ => ‘LIKE’ ), array(…