Category

Akasa Code WP

36 articles in this category

Hàm lấy chuẩn ảnh đại diện tin tức

20 Tháng 3, 2019 1 min read

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 lấy ảnh chuẩn ảnh đại diện sản phẩm

15 Tháng 3, 2019 1 min read

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…

Tối ưu đường dẫn woocommerce

14 Tháng 3, 2019 5 min read

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ó…

Theme basic client

10 Tháng 1, 2019 1 min read

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…

Đăng ký tạo Taxonomy trong WordPress

6 Tháng 11, 2018 1 min read

[php] /** * Create a taxonomy * * @uses Inserts new taxonomy object into the list * @uses Adds query vars * * @param string Name of taxonomy…

Đăng ký Post type trong wordpress

6 Tháng 11, 2018 1 min read

[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…

Hiển thị bài viết theo tags

6 Tháng 11, 2018 1 min read

[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…

Custom Tab trong Woocommerce

6 Tháng 11, 2018 1 min read

[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’ =>…

Query bài viết theo custom filed ACF

2 Tháng 11, 2018 1 min read

[php] $args = array( ‘numberposts’ => -1, ‘post_type’ => ‘event’, ‘meta_query’ => array( ‘relation’ => ‘OR’, array( ‘key’ => ‘location’, ‘value’ => ‘Melbourne’, ‘compare’ => ‘LIKE’ ), array(…