0
尽管看起来如此简单,但我不知道为什么下面的代码不会从帖子内容中删除第一个图库。删除WordPress的帖子内容中的第一个图库
function remove_slider($content){
$c=str_replace(get_post_gallery(),"",$content);
return $c;
}
add_filter("the_content","remove_slider");
在此先感谢。
工作得很好。 –
高兴能帮助兄弟:) – Exprator