我在标题中有一个“特色”区域。显示最新粘性帖子内容的php:
$last_sticky_post = get_post(end(get_option(\'sticky_posts\')));
if(!empty($last_sticky_post)):
setup_postdata($last_sticky_post);
the_content();
endif;
问题是同一篇文章现在在循环中呈现在它的下方-我如何才能抑制粘性文章在循环中出现?我在标题中有一个“特色”区域。显示最新粘性帖子内容的php:
$last_sticky_post = get_post(end(get_option(\'sticky_posts\')));
if(!empty($last_sticky_post)):
setup_postdata($last_sticky_post);
the_content();
endif;
问题是同一篇文章现在在循环中呈现在它的下方-我如何才能抑制粘性文章在循环中出现?在循环之前,请执行以下操作:
$args = array(
\'ignore_sticky_posts\' => 1
);
$query = new WP_Query( $args );
// The Loop
while ( $query->have_posts() ) : $query->the_post();
echo \'<li>\';
the_title();
echo \'</li>\';
endwhile;
是否有方法禁用图像或缩略图链接URL,以及删除函数中现有的图像/缩略图链接。php?不是此中发布的媒体下的设置link, 请