Khi xây dựng một website WordPress, việc cung cấp công cụ tìm kiếm hiệu quả cho người dùng là rất quan trọng, đặc biệt là trong các website bán hàng hoặc dịch vụ. Một trong những tính năng không thể thiếu là bộ lọc khoảng giá, giúp khách hàng dễ dàng tìm kiếm sản phẩm hoặc dịch vụ phù hợp với ngân sách của họ.
Tuy nhiên, nếu bạn không muốn cài đặt thêm plugin hoặc muốn giảm tải cho website của mình, thì bạn hoàn toàn có thể tạo bộ lọc khoảng giá mà không cần dùng plugin. Dưới đây là sharecode đơn giản để thực hiện điều này.

Bộ Lọc Khoảng Giá Là Gì?
Bộ lọc khoảng giá cho phép người dùng chọn một mức giá nhất định hoặc một khoảng giá để tìm kiếm sản phẩm phù hợp. Ví dụ, bạn có thể muốn tìm tất cả các sản phẩm có giá từ 100.000 VNĐ đến 500.000 VNĐ, hoặc sản phẩm dưới 1 triệu VNĐ. Tính năng này cực kỳ hữu ích trong các website bán hàng, đặc biệt khi bạn có hàng nghìn sản phẩm.
Cách Tạo Bộ Lọc Khoảng Giá Cho WordPress Không Cần Plugin
B1: Các bạn có thể tách riêng ra 1 plugin cho dễ nhé. Đáng lẽ mình hướng dẫn không dùng plugin nhưng thôi giờ mình hướng dẫn tạo plugin này luôn kkk. Các bạn tạo file woocommerce-price-list-filter.php và bỏ đoạn code dưới vào nhé
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 | <?php /* * Plugin Name: muathemewpgiare-locgia Woocommerce Price List Filter * Version: 1.0.0 * Description: Woocommerce Price List Filter * Author: muathemewpgiare.com * Author URI: http://muathemewpgiare.com * Plugin URI: http://muathemewpgiare.com * Text Domain: muathemewpgiare-locgia-pricelistfilter * Domain Path: /languages */ if ( ! defined( 'ABSPATH' ) ) { exit; } if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) { load_textdomain('muathemewpgiare-locgia-pricelistfilter', dirname(__FILE__) . '/languages/muathemewpgiare-locgia-pricelistfilter-' . get_locale() . '.mo'); class muathemewpgiare-locgia_Widget_Price_List_Filter extends WP_Widget { public function __construct() { $widget_ops = array( 'classname' => 'muathemewpgiare-locgia_woocommerce_price_list_filter woocommerce widget_layered_nav', 'description' => __('Price List Filter for woocommerce', 'muathemewpgiare-locgia-pricelistfilter'), ); $control_ops = array( 'width' => 500, 'height' => 350, ); parent::__construct( 'muathemewpgiare-locgia_woocommerce_price_list_filter', __('Lọc giá','muathemewpgiare-locgia-pricelistfilter'), $widget_ops, $control_ops ); } public function widget( $args, $instance ) { global $wp, $wp_the_query; if ( ! is_post_type_archive( 'product' ) && ! is_tax( get_object_taxonomies( 'product' ) ) ) { return; } $min_price = isset( $_GET['min_price'] ) ? esc_attr( $_GET['min_price'] ) : ''; $max_price = isset( $_GET['max_price'] ) ? esc_attr( $_GET['max_price'] ) : ''; // Find min and max price in current result set $prices = $this->get_filtered_price(); $min = floor( $prices->min_price ); $max = ceil( $prices->max_price ); if ( $min === $max ) { return; } echo $args['before_widget']; if ( $title = apply_filters( 'widget_title', empty( $instance['title'] ) ? '' : $instance['title'], $instance, $this->id_base ) ) { echo $args['before_title'] . $title . $args['after_title']; } if ( '' === get_option( 'permalink_structure' ) ) { $form_action = remove_query_arg( array( 'page', 'paged' ), $this->get_page_base_url() ); } else { $form_action = preg_replace( '%\/page/[0-9]+%', '', $this->get_page_base_url() ); } /** * Adjust max if the store taxes are not displayed how they are stored. * Min is left alone because the product may not be taxable. * Kicks in when prices excluding tax are displayed including tax. */ if ( wc_tax_enabled() && 'incl' === get_option( 'woocommerce_tax_display_shop' ) && ! wc_prices_include_tax() ) { $tax_classes = array_merge( array( '' ), WC_Tax::get_tax_classes() ); $class_max = $max; foreach ( $tax_classes as $tax_class ) { if ( $tax_rates = WC_Tax::get_rates( $tax_class ) ) { $class_max = $max + WC_Tax::get_tax_total( WC_Tax::calc_exclusive_tax( $max, $tax_rates ) ); } } $max = $class_max; } $min_price = isset( $_GET['min_price'] ) ? esc_attr( $_GET['min_price'] ) : apply_filters( 'woocommerce_price_filter_widget_min_amount', $min ); $max_price = isset( $_GET['max_price'] ) ? esc_attr( $_GET['max_price'] ) : apply_filters( 'woocommerce_price_filter_widget_max_amount', $max ); $price_list = !empty( $instance['price_list'] ) ? $instance['price_list'] : array(); $view_count = !empty( $instance['view_count'] ) ? intval($instance['view_count']) : 0; if($price_list && is_array($price_list)): ?> <ul class="woocommerce-widget-layered-nav-list"> <?php foreach ($price_list as $range): $active = ''; $min = isset($range['min']) ? $range['min'] : 0; $max = isset($range['max']) ? $range['max'] : 0; $label = isset($range['label']) ? esc_attr($range['label']) : ''; $arg_url_query = array(); if($min) $arg_url_query['min_price'] = $min; if($max) $arg_url_query['max_price'] = $max; if(!$max && $min){ $form_action = remove_query_arg( array( 'max_price' ), $this->get_page_base_url() ); } if($max && !$min){ $form_action = remove_query_arg( array( 'min_price' ), $this->get_page_base_url() ); } $form_action = add_query_arg( $arg_url_query, $form_action ); if($view_count) { $count_post = $this->get_count_post($min, $max); } if( (isset($_GET['max_price']) && isset( $_GET['min_price'] ) && $max == $max_price && $min_price == $min) || (isset($_GET['max_price']) && !isset( $_GET['min_price'] ) && $max == $max_price) || (!isset($_GET['max_price']) && isset( $_GET['min_price'] ) && $min_price == $min) ){ $active = 'active woocommerce-widget-layered-nav-list__item--chosen chosen'; $form_action = remove_query_arg( array( 'max_price', 'min_price' ), $this->get_page_base_url() ); } ?> <li class="woocommerce-widget-layered-nav-list__item wc-layered-nav-term <?php echo $active;?>"> <a href="<?php echo esc_url($form_action);?>"><?php echo $label;?></a><?php if($view_count):?><span class="count">(<?php echo $count_post;?>)</span><?php endif;?> </li> <?php endforeach;?> </ul> <?php endif; echo $args['after_widget']; } public function form( $instance ) { $title = ! empty( $instance['title'] ) ? $instance['title'] : ''; $view_count = ! empty( $instance['view_count'] ) ? intval($instance['view_count']) : 0; $price_list = ! empty( $instance['price_list'] ) ? $instance['price_list'] : array(); ?> <p> <label for="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>"><?php _e( esc_attr( 'Title:' ) ); ?></label> <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'title' ) ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>"> </p> <div class="muathemewpgiare-locgia_woo_price_filter"> <table> <thead> <tr> <th><?php _e('Min Price','muathemewpgiare-locgia-pricelistfilter');?></th> <th><?php _e('Max Price','muathemewpgiare-locgia-pricelistfilter');?></th> <th><?php _e('Label','muathemewpgiare-locgia-pricelistfilter');?></th> <th></th> </tr> </thead> <tfoot> <tr> <td colspan="4"><a href="javascript:void(0);" data-number="<?php echo $this->number;?>" class="button button-primary add_price_list"><?php _e('Add price range','muathemewpgiare-locgia-pricelistfilter');?></a></td> </tr> </tfoot> <tbody> <?php foreach($price_list as $k=>$range): $min = isset($range['min']) ? $range['min'] : 0; $max = isset($range['max']) ? $range['max'] : 0; $label = isset($range['label']) ? esc_attr($range['label']) : ''; ?> <tr> <td><input class="widefat" type="number" min="0" name="<?php echo esc_attr( $this->get_field_name( 'price_list' ) ); ?>[<?php echo $k;?>][min]" value="<?php echo $min;?>"></td> <td><input class="widefat" type="number" min="0" name="<?php echo esc_attr( $this->get_field_name( 'price_list' ) ); ?>[<?php echo $k;?>][max]" value="<?php echo $max;?>"></td> <td><input class="widefat" type="text" name="<?php echo esc_attr( $this->get_field_name( 'price_list' ) ); ?>[<?php echo $k;?>][label]" value="<?php echo $label;?>"></td> <td class="muathemewpgiare-locgia_td_delete"><a href="#" class="muathemewpgiare-locgia_delete_price_list" title="<?php _e('Delete','muathemewpgiare-locgia-pricelistfilter');?>">x</a></td> </tr> <?php endforeach;?> </tbody> </table> <script type="text/html" id="tmpl-muathemewpgiare-locgia-price-range-<?php echo $this->number;?>"> <tr> <td><input class="widefat" type="number" min="0" name="<?php echo esc_attr( $this->get_field_name( 'price_list' ) ); ?>[dk_{{data.index}}][min]"></td> <td><input class="widefat" type="number" min="0" name="<?php echo esc_attr( $this->get_field_name( 'price_list' ) ); ?>[dk_{{data.index}}][max]"></td> <td><input class="widefat" type="text" name="<?php echo esc_attr( $this->get_field_name( 'price_list' ) ); ?>[dk_{{data.index}}][label]"></td> <td class="muathemewpgiare-locgia_td_delete"><a href="#" class="muathemewpgiare-locgia_delete_price_list" title="<?php _e('Delete','muathemewpgiare-locgia-pricelistfilter');?>">x</a></td> </tr> </script> </div> <p> <label for="<?php echo esc_attr( $this->get_field_id( 'view_count' ) ); ?>"> <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'view_count' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'view_count' ) ); ?>" type="checkbox" value="1" <?php checked(1,$view_count);?>> <?php _e( esc_attr( 'View count product','muathemewpgiare-locgia-pricelistfilter' ) ); ?> </label> </p> <?php } public function update( $new_instance, $old_instance ) { $instance = array(); $instance['title'] = ( ! empty( $new_instance['title'] ) ) ? strip_tags( $new_instance['title'] ) : ''; $instance['view_count'] = ! empty( $new_instance['view_count'] ) ? intval($new_instance['view_count']) : 0; $instance['price_list'] = ( ! empty( $new_instance['price_list'] ) ) ? $new_instance['price_list'] : array(); return $instance; } protected function get_filtered_price() { global $wpdb, $wp_the_query; $args = $wp_the_query->query_vars; $tax_query = isset( $args['tax_query'] ) ? $args['tax_query'] : array(); $meta_query = isset( $args['meta_query'] ) ? $args['meta_query'] : array(); if ( ! is_post_type_archive( 'product' ) && ! empty( $args['taxonomy'] ) && ! empty( $args['term'] ) ) { $tax_query[] = array( 'taxonomy' => $args['taxonomy'], 'terms' => array( $args['term'] ), 'field' => 'slug', ); } foreach ( $meta_query + $tax_query as $key => $query ) { if ( ! empty( $query['price_filter'] ) || ! empty( $query['rating_filter'] ) ) { unset( $meta_query[ $key ] ); } } $meta_query = new WP_Meta_Query( $meta_query ); $tax_query = new WP_Tax_Query( $tax_query ); $meta_query_sql = $meta_query->get_sql( 'post', $wpdb->posts, 'ID' ); $tax_query_sql = $tax_query->get_sql( $wpdb->posts, 'ID' ); $sql = "SELECT min( FLOOR( price_meta.meta_value ) ) as min_price, max( CEILING( price_meta.meta_value ) ) as max_price FROM {$wpdb->posts} "; $sql .= " LEFT JOIN {$wpdb->postmeta} as price_meta ON {$wpdb->posts}.ID = price_meta.post_id " . $tax_query_sql['join'] . $meta_query_sql['join']; $sql .= " WHERE {$wpdb->posts}.post_type IN ('" . implode( "','", array_map( 'esc_sql', apply_filters( 'woocommerce_price_filter_post_type', array( 'product' ) ) ) ) . "') AND {$wpdb->posts}.post_status = 'publish' AND price_meta.meta_key IN ('" . implode( "','", array_map( 'esc_sql', apply_filters( 'woocommerce_price_filter_meta_keys', array( '_price' ) ) ) ) . "') AND price_meta.meta_value > '' "; $sql .= $tax_query_sql['where'] . $meta_query_sql['where']; if ( $search = WC_Query::get_main_search_query_sql() ) { $sql .= ' AND ' . $search; } return $wpdb->get_row( $sql ); } protected function get_page_base_url() { if ( defined( 'SHOP_IS_ON_FRONT' ) ) { $link = home_url(); } elseif ( is_post_type_archive( 'product' ) || is_page( wc_get_page_id( 'shop' ) ) ) { $link = get_post_type_archive_link( 'product' ); } elseif ( is_product_category() ) { $link = get_term_link( get_query_var( 'product_cat' ), 'product_cat' ); } elseif ( is_product_tag() ) { $link = get_term_link( get_query_var( 'product_tag' ), 'product_tag' ); } else { $queried_object = get_queried_object(); $link = get_term_link( $queried_object->slug, $queried_object->taxonomy ); } // Min/Max if ( isset( $_GET['min_price'] ) ) { $link = add_query_arg( 'min_price', wc_clean( $_GET['min_price'] ), $link ); } if ( isset( $_GET['max_price'] ) ) { $link = add_query_arg( 'max_price', wc_clean( $_GET['max_price'] ), $link ); } // Order by if ( isset( $_GET['orderby'] ) ) { $link = add_query_arg( 'orderby', wc_clean( $_GET['orderby'] ), $link ); } /** * Search Arg. * To support quote characters, first they are decoded from " entities, then URL encoded. */ if ( get_search_query() ) { $link = add_query_arg( 's', rawurlencode( htmlspecialchars_decode( get_search_query() ) ), $link ); } // Post Type Arg if ( isset( $_GET['post_type'] ) ) { $link = add_query_arg( 'post_type', wc_clean( $_GET['post_type'] ), $link ); } // Min Rating Arg if ( isset( $_GET['rating_filter'] ) ) { $link = add_query_arg( 'rating_filter', wc_clean( $_GET['rating_filter'] ), $link ); } // All current filters if ( $_chosen_attributes = WC_Query::get_layered_nav_chosen_attributes() ) { foreach ( $_chosen_attributes as $name => $data ) { $filter_name = sanitize_title( str_replace( 'pa_', '', $name ) ); if ( ! empty( $data['terms'] ) ) { $link = add_query_arg( 'filter_' . $filter_name, implode( ',', $data['terms'] ), $link ); } if ( 'or' == $data['query_type'] ) { $link = add_query_arg( 'query_type_' . $filter_name, 'or', $link ); } } } return $link; } function get_count_post($min_price = '', $max_price = ''){ if(!$min_price && !$max_price) return; global $wp_the_query; $old_query = $wp_the_query->query_vars; if(!$min_price && $max_price){ $meta_price = array( array( 'key' => '_price', 'value' => $max_price, 'compare' => '<=', 'type' => 'NUMERIC' ) ); } if(!$max_price && $min_price){ $meta_price = array( array( 'key' => '_price', 'value' => $min_price, 'compare' => '>=', 'type' => 'NUMERIC' ) ); } if($min_price && $max_price){ $meta_price = array( array( 'key' => '_price', 'value' => array($min_price, $max_price), 'compare' => 'BETWEEN', 'type' => 'NUMERIC' ) ); } $args = array( 'post_type' => array('product'), 'post_status' => 'publish', 'posts_per_page' => -1, 'meta_query' => $meta_price ); $tax_query = isset( $old_query['tax_query'] ) ? $old_query['tax_query'] : array(); if ( version_compare( WC_VERSION, '3.0.0', '>=' ) ) { $tax_query[] = array( 'taxonomy' => 'product_visibility', 'field' => 'name', 'terms' => 'exclude-from-catalog', 'operator' => 'NOT IN', ); } else { $args['meta_query'][] = array( 'key' => '_visibility', 'value' => array( 'catalog', 'visible' ), 'compare' => 'IN' ); } if(is_tax()){ if ( ! empty( $old_query['taxonomy'] ) && ! empty( $old_query['term'] ) ) { $tax_query[] = array( 'taxonomy' => $old_query['taxonomy'], 'terms' => array( $old_query['term'] ), 'field' => 'slug', ); } } $args['tax_query'] = $tax_query; $myposts = get_posts($args); return count($myposts); } } function register_muathemewpgiare-locgia_woo_price_widget() { register_widget( 'muathemewpgiare-locgia_Widget_Price_List_Filter' ); } add_action( 'widgets_init', 'register_muathemewpgiare-locgia_woo_price_widget' ); add_action( 'admin_enqueue_scripts', 'muathemewpgiare-locgia_pricelist_register_scripts', 1 ); function muathemewpgiare-locgia_pricelist_register_scripts() { $current_screen = get_current_screen(); if(isset($current_screen->base) && $current_screen->base == 'widgets') { wp_enqueue_style('pricelist-css', plugins_url('assets/css/price-list-filter.css', __FILE__), array(), '1.0', 'all'); wp_enqueue_script('pricelist-js', plugins_url('assets/js/price-list-filter.js', __FILE__), array('jquery', 'wp-util'), '1.0', true); $php_array = array( 'URLhome' => home_url() ); wp_localize_script('pricelist-js', 'muathemewpgiare-locgia_price_array', $php_array); } } } |
B2: Các bạn tạo thư mục /assets/css/price-list-filter.css
Các bạn tạo thư mục xong sẽ cho đoạn code dưới đây vào nhé
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | .muathemewpgiare-locgia_woo_price_filter, .muathemewpgiare-locgia_woo_price_filter * { box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; } .muathemewpgiare-locgia_woo_price_filter table { width: 100%; } .muathemewpgiare-locgia_woo_price_filter table { border: 1px solid #ccc; border-collapse: collapse; } .muathemewpgiare-locgia_woo_price_filter table th { text-align: left; } .muathemewpgiare-locgia_woo_price_filter table th, .muathemewpgiare-locgia_woo_price_filter table td { border: 1px solid #ccc; padding: 5px 10px; } .muathemewpgiare-locgia_woo_price_filter { margin: 0 0 10px 0; } .muathemewpgiare-locgia_woo_price_filter input { width: 100%; } .muathemewpgiare-locgia_td_delete{ width: 30px; text-align: center; } a.muathemewpgiare-locgia_delete_price_list { text-decoration: none; color: red; } |
Bước 3: Tạo thư mục như sau /assets/js/price-list-filter.js và thêm code js dưới đây vào là được nhé
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | (function ($, wp) { $(document).ready(function () { $('body').on('click','.add_price_list', function(){ var this_parent = $(this).closest('.muathemewpgiare-locgia_woo_price_filter'); var thisTable = $(this).closest('table'); var thisNumber = $(this).data('number'); var size = thisTable.find( 'tbody tr' ).length; var muathemewpgiare-locgia_price_template = wp.template( 'muathemewpgiare-locgia-price-range-'+thisNumber ); $('tbody',thisTable).append( muathemewpgiare-locgia_price_template({ index: size })); }); $('body').on('click','.muathemewpgiare-locgia_delete_price_list',function () { var thisTr = $(this).closest('tr'); var thisTbody = $(this).closest('tbody'); thisTr.fadeOut(400,function () { $(this).remove(); var loop = 0; $('tr',thisTbody).each(function(index, row){ $('input', row ).each( function( i, el ) { var t = $(el); t.attr( 'name', t.attr('name').replace(/\[dk_([^[]*)\]/, "[dk_" + loop + "]" ) ); }); loop++; }); }); return false; }); }); })(jQuery, wp) |
Chúc các bạn thành công nhé.
- Hướng dẫn cách tạo mục lục tự động không cần dùng plugin
- Website bảo hành trọn đời có thật không? Hay là chiêu trò của những đơn vị làm website
- Widget là gì? Tất cả 100% kiến thức cần biết về Widget WordPress
- Hướng Dẫn Tự Code Chức Năng Plugin WordPress
- [Thủ thuật wordpress] Làm thế nào để bảo vệ các trường ACF bằng MemberPress?