Server IP : 14.241.111.210 / Your IP : 3.135.184.112 Web Server : Apache System : Linux localhost.localdomain 3.10.0-1160.66.1.el7.x86_64 #1 SMP Wed May 18 16:02:34 UTC 2022 x86_64 User : www ( 1001) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /www/wwwroot/webthanhha.com/wp-content/themes/webthanhha/inc/ |
Upload File : |
<form class="sap-xep" method="get"> <?php $language = get_locale(); ?> <?php $queried_object = get_queried_object(); $term_id = $queried_object->term_id; $order2 = array(); if (isset($_GET['orderby']) && isset($_GET['order']) && $_GET['orderby'] == "title") { $order2 = array( 'orderby' => 'title', 'order' => $_GET['order'] ); } if (isset($_GET['orderby']) && isset($_GET['order']) && $_GET['orderby'] == "price") { $order2 = array( 'meta_key' => 'price', 'orderby' => 'meta_value', 'order' => $_GET['order'] ); } $order1 = array( 'post_type' => 'air-purifiers-product', 'tax_query' => array( array( 'taxonomy' => 'product', 'terms' => $term_id, 'field' => 'term_id', ) ) ); $order = array_merge($order1, $order2); query_posts($order); while (have_posts()) { the_post(); } wp_reset_query(); $search = array($_SERVER['QUERY_STRING'], '?'); $replace = array('', ''); $currentUrl = str_replace($search,$replace, $_SERVER['REQUEST_URI']); ?> <select class="orderby" name="orderby" onchange="window.location = $(this).val();"> <option selected="selected" value="position:asc">Mẫu Website mới nhất</option> <option value="<?= $currentUrl; ?>?orderby=title&order=asc">Mẫu Website theo tên: A-Z</option> <option value="<?= $currentUrl; ?>?orderby=title&order=desc">Mẫu Website theo tên: Z-A</option> <!--option value="<?= $currentUrl; ?>?orderby=price&order=asc">Giá tăng dần</option> <option value="<?= $currentUrl; ?>?orderby=price&order=desc">Giá giảm dần</option--> </select> <input type="hidden" name="paged" value="1"> </form>