欢迎您光临自学哈网,只为分享网络知识教程,供大家学习参考!

「自学哈网」wordpress图片插件_14个最适合WordPress的精选图片插件和教程(wordpress官网)

作者 : 自学哈 本文共11059个字,预计阅读时间需要28分钟 2022-11-26 共127人阅读
也想出现在这里? 联系我们

wordpress图片插件

Featured images play an important role in most modern WordPress themes. While you can find beautiful royalty free images to use on your WordPress site as featured images, there is a lot more you can do with featured images. In this article, we will show you some of the best featured image plugins and tools for WordPress.

精选图片在大多数现代WordPress主题中起着重要作用。 虽然您可以在WordPress网站上找到漂亮的免版税图片作为特色图片使用,但特色图片还可以做很多工作。 在本文中,我们将向您展示一些功能最强大的WordPress图像插件和工具。

影片教学 (Video Tutorial)

演示地址

If you don’t like the video or need more instructions, then continue reading.

如果您不喜欢该视频或需要更多说明,请继续阅读。

1.自言自语 (1. Soliloquy)

Soliloquy is the best WordPress slider plugin on the market. It comes with a featured content add-on that allows you to easily add featured content slider to any WordPress theme.

Soliloquy是市场上最好的WordPress滑块插件。 它带有特色内容插件,可让您轻松地将特色内容滑块添加到任何WordPress主题。

It automatically gets the featured image from your article and uses it as the slide with your post’s title and excerpt. See our tutorial on how to add featured content slider in WordPress for step by step instructions.

它会自动从您的文章中获取特色图片,并将其用作带有您的帖子标题和摘录的幻灯片。 请参阅有关如何在WordPress中添加特色内容滑块的教程,以获取逐步说明。

2.快速精选图片 (2. Quick Featured Images)

Quick Featured Images is a powerful WordPress plugin that lets you perform bulk editing actions on your featured images. You can replace, remove, or add featured images with bulk actions.

快速精选图片是功能强大的WordPress插件,可让您对精选图片执行批量编辑操作。 您可以通过批量操作替换,删除或添加特色图像。

You can also set a default image to be used as featured image or instruct the plugin to automatically use the first image in a post as the featured image. Take a look at our tutorial on how to bulk edit featured images in WordPress for more detailed instructions.

您还可以设置默认图像以用作特色图像,或指示插件自动将帖子中的第一个图像用作特色图像。 请参阅我们的教程,了解如何在WordPress中批量编辑特色图片,以获取更多详细说明。

3.多个发布缩略图 (3. Multiple Post Thumbnails)

As the name suggests, this plugin allows you to add multiple featured images or post thumbnails in your WordPress posts. You will need to edit your theme files to display the secondary featured image.

顾名思义,此插件可让您在WordPress帖子中添加多个精选图片或发布缩略图。 您将需要编辑主题文件以显示辅助功能图像。

See this tutorial on how to add multiple post thumbnails in WordPress for step by step instructions.

请参阅本教程,了解如何在WordPress中添加多个帖子缩略图,以获取逐步说明。

4.需要特色图片 (4. Require Featured Image)

Many WordPress themes are designed in a way that your posts look strange without a featured image. Sometimes you or other authors on your site may forget to add featured image for a post.

许多WordPress主题的设计方式都使您的帖子看起来很奇怪而没有特色图片。 有时您或您网站上的其他作者可能会忘记为帖子添加特色图片。

This plugin simply stops authors on your site from publishing a post without a featured image. Take a look at how to require featured images for posts in WordPress for more instructions.

该插件只是阻止您网站上的作者发布没有特色图片的帖子。 看看如何要求WordPress帖子中的特色图片以获取更多说明。

5.特色图片专栏 (5. Featured Image Column)

By default, WordPress does not tell you whether a post has featured image or not until you open the post in the post editor. This plugin simply adds a featured image column on your WordPress posts page.

默认情况下,WordPress不会告诉您帖子是否具有特色图片,直到您在帖子编辑器中打开帖子为止。 该插件只是在您的WordPress帖子页面上添加了特色图片列。

It makes it easy for you to quickly see featured images set for posts. The plugin works for all post types, and you can exclude post types where you don’t want to display a featured image column. See our tutorial on how to add a featured image column in WordPress for details.

它使您可以轻松快速地查看为帖子设置的特色图片。 该插件适用于所有帖子类型,并且您可以在不想显示特色图像列的地方排除帖子类型。 有关详细信息,请参见有关如何在WordPress中添加特色图片列的教程。

6.默认精选图片 (6. Default Featured Image)

It is possible to display a default featured image in WordPress by adding code into your WordPress theme. However, many beginners don’t want to edit their theme. Default Featured Image plugin provides an easy way to do that.

通过将代码添加到WordPress主题中,可以在WordPress中显示默认的特色图片。 但是,许多初学者不想编辑他们的主题。 默认的精选图片插件提供了一种简便的方法。

Simply add a default featured image from WordPress media library. To learn more, take a look at our tutorial on how to set a default featured image in WordPress using a plugin.

只需从WordPress媒体库添加默认的特色图片。 要了解更多信息,请看一下我们的教程,该教程如何使用WordPress在WordPress中设置默认的特色图片 。

7.轻松添加缩略图 (7. Easy Add Thumbnail)

Setting up featured images for old posts that do not have a featured image can be tricky. Easy Add Thumbnail plugin solves this problem by automatically setting up the first image in a post as featured image. Even if you or other authors on your site forget to set a featured image, this plugin will automatically set one for you.

为没有特色图片的旧帖子设置特色图片可能很棘手。 Easy Add Thumbnail插件通过自动将帖子中的第一个图像设置为特色图像来解决此问题。 即使您或您网站上的其他作者忘记设置特色图片,此插件也会自动为您设置一个。

For older posts, it sets a featured image when the post is viewed on the front-end. See our tutorial on how to add post attachment as featured image in WordPress.

对于较早的帖子,当在前端查看该帖子时,它将设置特色图像。 请参阅我们的教程,了解如何在WordPress中将帖子附件添加为特色图片 。

8.视频缩略图 (8. Video Thumbnails)

If you are creating a video site with WordPress, then you may want to show video thumbnails as featured images for your posts. Video Thumbnails plugin automatically checks your posts for a YouTube, Vimeo, or DailyMotion video and then automatically sets video thumbnail as the featured image for the post.

如果要使用WordPress创建视频网站,则可能需要将视频缩略图显示为帖子的特色图片。 视频缩略图插件会自动检查您的帖子中是否有YouTube, Vimeo或DailyMotion视频,然后自动将视频缩略图设置为帖子的特色图片。

See our guide on how to add thumbnails for YouTube videos in WordPress.

请参阅我们的指南,了解如何在WordPress中为YouTube视频添加缩略图 。

9.精选视频加 (9. Featured Video Plus)

If you run a site where your main content is in video format, then you might want to set featured videos instead of featured images. Featured Videos Plugin allows you to easily add YouTube, Vimeo, or DailyMotion videos as featured videos.

如果您运行的主要内容是视频格式的网站,则可能需要设置精选视频而不是精选图像。 特色视频插件可让您轻松地将YouTube,Vimeo或DailyMotion视频添加为特色视频。

The plugin will display your featured video in your WordPress theme where it displays featured images. See our tutorial on how to add featured video thumbnails in WordPress for more details.

该插件将以WordPress主题显示您的精选视频,并在其中显示精选图片。 有关更多详细信息,请参见有关如何在WordPress中添加精选视频缩略图的教程。

10.发表缩略图编辑器 (10. Post Thumbnail Editor)

Many WordPress themes automatically crop an image from the middle which ruins your featured image. Post Thumbnail Editor plugin allows you to edit featured images and crop them inside WordPress.

许多WordPress主题会自动从中间裁剪图像,从而破坏您的特色图像。 发布缩略图编辑器插件可让您编辑精选图片并将其裁剪到WordPress中。

You can then use your cropped image as the featured image. See our tutorial on how to crop and edit WordPress post thumbnails for detailed instructions.

然后,您可以将裁剪的图像用作特色图像。 有关详细说明,请参阅我们的有关如何裁剪和编辑WordPress帖子缩略图的教程。

11. WordPress中的默认后备精选图片 (11. Default Fallback Featured Image in WordPress)

An easier way to display a placeholder image for posts that do not have a featured image is by adding a default fallback featured image. Beginners can use the Default Featured Image plugin. But if you want to do it without installing a plugin, then here is what you need to do.

对于没有特色图片的帖子,显示占位符图片的更简单方法是添加默认的后备特色图片。 初学者可以使用默认特色图片插件。 但是,如果您想在不安装插件的情况下进行操作,那么这就是您需要做的。

Simply upload your default image to your theme’s images folder and rename it to default-image.jpg. Now you will need to edit your theme files and in templates where it displays post thumbnail you will need to replace it with this code.

只需将默认图像上传到主题的图像文件夹,然后将其重命名为default-image.jpg。 现在,您将需要编辑主题文件,并且在显示帖子缩略图的模板中,需要用此代码替换它。


<?php if ( has_post_thumbnail() ) {
the_post_thumbnail();
} else { ?>
<img src="<?php bloginfo('template_directory'); ?>/images/default-image.jpg" alt="<?php the_title(); ?>" />
<?php } ?>

For a more detailed explanation check out our tutorial on how to set a default fallback image for WordPress post thumbnail.

有关更详细的说明,请查看我们的教程,该教程如何为WordPress发布缩略图设置默认后备图片 。

12.按类别分类的后备特色图片 (12. Fallback Featured Image by Category)

One problem with setting up a single image as the default fallback featured image is that one image does not fit all posts. However, if you set a fallback featured image based on post’s category, then it can solve that problem.

将单个图像设置为默认后备功能图像的一个问题是,一个图像不能容纳所有帖子。 但是,如果您根据帖子的类别设置后备特色图片,则可以解决该问题。

First you would need to create your category images. Then upload all category images to WordPress using the default media uploader. This will allow WordPress to prepare image sizes used by your theme. Now you need to download all category images and their sizes to your computer.

首先,您需要创建类别图像。 然后使用默认的媒体上传器将所有类别的图片上传到WordPress。 这将使WordPress准备主题使用的图像大小。 现在,您需要将所有类别的图像及其尺寸下载到计算机上。

Create a new folder and name it category-images. Upload this folder to /wp-content/uploads/ directory on your website using FTP. Finally, you need to add this code in your theme files where post thumbnails are displayed.

创建一个新文件夹并将其命名为category-images。 使用FTP将该文件夹上传到您网站上的/ wp-content / uploads /目录。 最后,您需要将此代码添加到显示帖子缩略图的主题文件中。


<?php if ( has_post_thumbnail() ) : ?>

<div class="entry-thumbnail">
<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(); ?></a>
</div>

<?php else : 
$category = get_the_category(); 
?>
<div class="entry-thumbnail">
<a href="<?php the_permalink(); ?>"><img src="<?php bloginfo('url'); ?>/wp-content/uploads/category-images/<?php echo $category[0]->category_nicename ; ?>-150x150.jpg" alt="<?php the_title(); ?>" /></a>
</div>

<?php endif; ?>

For more detailed explanation, take a look at our tutorial on how to set fallback featured image based on category in WordPress.

有关更多详细说明,请查看我们的教程,该教程如何基于WordPress中的类别设置后备功能图片 。

13.在WordPress RSS源中发布缩略图 (13. Post Thumbnails in WordPress RSS Feeds)

By default, WordPress does not display featured images or post thumbnails in RSS feeds. However, this can be easily resolved by adding this simple code snippet in your theme’s functions.php file or a site-specific plugin.

默认情况下,WordPress不会在RSS feed中显示特色图像或发布缩略图。 但是,可以通过在主题的functions.php文件或特定于站点的插件中添加此简单代码段来轻松解决此问题。


function rss_post_thumbnail($content) {
global $post;
if(has_post_thumbnail($post->ID)) {
$content = '<p>' . get_the_post_thumbnail($post->ID) .
'</p>' . get_the_content();
}
return $content;
}
add_filter('the_excerpt_rss', 'rss_post_thumbnail');
add_filter('the_content_feed', 'rss_post_thumbnail');

对WordPress中的特色图片进行故障排除并发布缩略图问题 (Troubleshooting Featured Images and Post Thumbnail Issues in WordPress)

Post thumbnails and featured images are handled by WordPress media library. Many issues related to the display of featured images in WordPress can be solved by solutions described in our troubleshooting guide on how to fix common image issues in WordPress. However, there are some specific issues that you may come across.

发布缩略图和特色图片由WordPress媒体库处理。 与WordPress中的特色图片显示相关的许多问题都可以通过我们的疑难解答指南中介绍的解决方案来解决,该解决方案介绍了如何解决WordPress中的常见图片问题 。 但是,您可能会遇到一些特定的问题。

14.重新生成缩略图 (14. Regenerate Thumbnails)

When you upload an image, WordPress automatically stores several copies of the same image in different sizes. Some of these sizes are defined by your theme and used as post thumbnail or featured image.

当您上传图片时,WordPress会自动以不同大小存储同一图片的多个副本。 其中一些尺寸由您的主题定义,并用作发布缩略图或特色图片。

However, if you change your WordPress theme and the new theme uses a different size, then your older posts will show the wrong post thumbnail size.

但是,如果更改WordPress主题,而新主题使用不同的大小,则旧帖子将显示错误的帖子缩略图大小。

Regenerate Thumbnails resolves this issue by generating new image sizes in WordPress. For detailed instructions take a look at our tutorial on how to regenerate thumbnails and create new image sizes in WordPress.

Regenerate Thumbnails通过在WordPress中生成新的图像大小来解决此问题。 有关详细说明,请查看我们的有关如何在WordPress中重新生成缩略图和创建新图像大小的教程。

15.修复WordPress中Facebook不正确的缩略图问题 (15. Fix Facebook Incorrect Thumbnail Issue in WordPress)

One of the most common issues with featured images in WordPress is that sometimes Facebook does not pick up the right image when a post is shared. To resolve this issue, you can use Yoast’s WordPress SEO plugin’s social feature to explicitly tell Facebook which image to use as post thumbnail.

WordPress中特色图片最常见的问题之一是,有时在分享帖子时Facebook不会选择正确的图片。 要解决此问题,您可以使用Yoast的WordPress SEO插件的社交功能来明确告诉Facebook将哪个图像用作发布缩略图。

See our tutorial on how to fix Facebook incorrect thumbnail issue in WordPress.

请参阅我们的教程,了解如何解决WordPress中Facebook错误的缩略图问题 。

We hope this article helped you find the best WordPress featured image plugins and tutorials. You may also want to take a look at our list of 10 most wanted category hacks and plugins for WordPress.

我们希望本文能帮助您找到最佳的WordPress特色图片插件和教程。 您可能还想看看我们列出的WordPress十大最受欢迎类别的黑客和插件 。

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

如果您喜欢这篇文章,请订阅我们的YouTube频道 WordPress视频教程。 您也可以在Twitter和Facebook上找到我们。

翻译自: https://www.wpbeginner.com/plugins/14-best-featured-images-plugin-and-tools-for-wordpress/

wordpress图片插件

本站声明:
本站所有资源来源于网络,分享目的仅供大家学习和交流!如若本站内容侵犯了原著者的合法权益,可联系邮箱976157886@qq.com进行删除。
自学哈专注于免费提供最新的分享知识、网络教程、网络技术的资源分享平台,好资源不私藏,大家一起分享!

自学哈网 » 「自学哈网」wordpress图片插件_14个最适合WordPress的精选图片插件和教程(wordpress官网)
也想出现在这里? 联系我们
© 2022 Theme by - 自学哈网 & WordPress Theme. All rights reserved 浙ICP备2022016594号