diff --git a/inc/fav-content.php b/inc/fav-content.php index 6f5187a..601b591 100644 --- a/inc/fav-content.php +++ b/inc/fav-content.php @@ -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', //分类法名称 diff --git a/inc/register.php b/inc/register.php index 88a718a..ee72375 100644 --- a/inc/register.php +++ b/inc/register.php @@ -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');