Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有一些关于此的帖子,但解决方案对我不起作用..
我将不胜感激您的帮助..
hier 是代码@my single.php
<?php echo '<div class="thecontent">' . apply_filters('the_content', get_the_content()) . '</div>';
我试过这个,但我不知道如何替换代码?
echo preg_replace('/<img[^>]+\>/i', '', get_the_content(), 1);
您也可以使用 css 隐藏特定帖子的特色图片
喜欢,
#(here your id of your post)img { display : none; }
或者
#(here your id of your post)img { visibility : hidden; }