我使用Wordpress 4.2,我想从一些图片中删除链接。
我已经看到我可以用这个:

问题是,在我的界面上,我没有看到:

中相同的说明显示设置
发布于 2015-08-15 20:34:01
使用“附件显示设置”将url设置为none的选项可通过图库选项使用"Add Media“获得。您是如何添加您的图像-通过功能图片或直接在您的文章/网页?你可以删除我的形象,如果它在帖子本身。
对于特色图片,您必须进入模板文件并从图像中删除链接包装器。如果您有此功能的条件,例如,只有某些类别未链接,则可以为该情况添加条件。
<?php if ( has_post_thumbnail() ) : ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
<?php the_post_thumbnail(); ?>
</a>
<?php endif; ?>对此:
<?php if ( has_post_thumbnail() ) : ?>
<?php the_post_thumbnail(); ?>
<?php endif; ?>https://wordpress.stackexchange.com/questions/198737
复制相似问题