部署代码
将以下代码添加到主题中functions.php代码来自君子不器。
/** * 文章标题:WordPress纯代码:为WordPress文章列表增加了文章中图片的数量 * 作者:君子不器 */ function junzibuqi_post_images_number(){global $post;$content = $post->post_content; preg_match_all(/<img.*?(?:
时间:2021-09-01 13:51:01
将以下代码添加到主题中functions.php代码来自君子不器。
/** * 文章标题:WordPress纯代码:为WordPress文章列表增加了文章中图片的数量 * 作者:君子不器 */ function junzibuqi_post_images_number(){global $post;$content = $post->post_content; preg_match_all(/<img.*?(?: