Skip to content

Commit 0917f52

Browse files
committed
修复排序错误
修复排序错误 修改jquer为七牛公共库地址,解决百度库无法加载的问题
1 parent 4a3024a commit 0917f52

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

inc/fav-content.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function fav_con($mid) { ?>
1111
'ignore_sticky_posts' => 1, //忽略置顶文章
1212
'posts_per_page' => -1, //显示的文章数量
1313
'meta_key' => '_sites_order',
14-
'orderby' => 'meta_value',
14+
'orderby' => 'meta_value_num',
1515
'tax_query' => array(
1616
array(
1717
'taxonomy' => 'favorites', //分类法名称

inc/register.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function theme_load_scripts() {
3131
wp_enqueue_style('nav');
3232

3333
wp_deregister_script( 'jquery' );
34-
wp_register_script( 'jquery', '//libs.baidu.com/jquery/2.0.0/jquery.min.js', array(), $theme_version ,false);
34+
wp_register_script( 'jquery', '//cdn.staticfile.org/jquery/2.0.0/jquery.min.js', array(), $theme_version ,false);
3535
wp_enqueue_script('jquery');
3636

3737
wp_enqueue_script('bootstrap');

0 commit comments

Comments
 (0)