Skip to content

Commit

Permalink
修复排序错误
Browse files Browse the repository at this point in the history
修复排序错误
修改jquer为七牛公共库地址,解决百度库无法加载的问题
owen0o0 committed Oct 24, 2019

Verified

This commit was signed with the committer’s verified signature.
samuel-nogueira-kununu Samuel Nogueira
1 parent 4a3024a commit 0917f52
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion inc/fav-content.php
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@ function fav_con($mid) { ?>
'ignore_sticky_posts' => 1, //忽略置顶文章
'posts_per_page' => -1, //显示的文章数量
'meta_key' => '_sites_order',
'orderby' => 'meta_value',
'orderby' => 'meta_value_num',
'tax_query' => array(
array(
'taxonomy' => 'favorites', //分类法名称
2 changes: 1 addition & 1 deletion inc/register.php
Original file line number Diff line number Diff line change
@@ -31,7 +31,7 @@ function theme_load_scripts() {
wp_enqueue_style('nav');

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

wp_enqueue_script('bootstrap');

0 comments on commit 0917f52

Please sign in to comment.