From 52dc2c75420defe6ddaaa0a0052190452203bd84 Mon Sep 17 00:00:00 2001 From: owen0o0 <32561126+owen0o0@users.noreply.github.com> Date: Wed, 15 Jan 2020 19:53:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8E=92=E5=BA=8F=E5=8F=AF?= =?UTF-8?q?=E8=83=BD=E4=BC=9A=E9=9A=8F=E6=9C=BA=E4=B9=B1=E8=B7=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inc/fav-content.php | 2 +- index.php | 7 ++++--- single-sites.php | 2 +- templates/site-card.php | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/inc/fav-content.php b/inc/fav-content.php index af2d99b..906f89f 100644 --- a/inc/fav-content.php +++ b/inc/fav-content.php @@ -21,7 +21,7 @@ function fav_con($mid) { ?> 'ignore_sticky_posts' => 1, //忽略置顶文章 'posts_per_page' => $site_n, //显示的文章数量 'meta_key' => '_sites_order', - 'orderby' => 'meta_value_num', + 'orderby' => array( 'meta_value_num' => 'DESC', 'ID' => 'DESC' ), 'tax_query' => array( array( 'taxonomy' => 'favorites', //分类法名称 diff --git a/index.php b/index.php index b9501c8..f2e9848 100644 --- a/index.php +++ b/index.php @@ -25,6 +25,7 @@ } ?> +
' . stripslashes( io_get_option('ad_home') ) . '
' . stripslashes( io_get_option('ad_home') ) . '
'; ?> + +

相关导航

-
+
-

ID, '_sites_sescribe', true) ?: get_the_excerpt($post->ID); ?>

+

ID, '_sites_sescribe', true) ?: preg_replace("/(\s|\ \;| |\xc2\xa0)/","",get_the_excerpt($post->ID)); ?>