wordpress 缩略图_如何在WordPress中轻松显示带有缩略图的页面列表

wordpress 缩略图

Most business websites primarily use pages for their content. Since pages are different than posts, you may need different ways to display them. In this article, we will show you how to easily add a page list with thumbnails in WordPress. We will also show you a way to display child pages and sibling pages as well.

大多数商业网站主要使用页面作为其内容。 由于页面与帖子不同 ,因此您可能需要不同的方式来显示它们。 在本文中,我们将向您展示如何在WordPress中轻松添加带有缩略图的页面列表。 我们还将向您展示一种显示子页面和兄弟页面的方法。

A simple page list with thumbnails in WordPress

First thing you need to do is install and activate the Page-list plugin. It works out of the box, so there are no settings for you to configure.

您需要做的第一件事是安装并激活Page-list插件。 它开箱即用,因此没有可供您配置的设置。

Page-list comes with a shortcodes with an extensive list of parameters. Lets start by adding a plain list of all pages as a sitemap.

页面列表带有带有大量参数列表的简码 。 首先,将所有页面的简单列表添加为站点地图。

Simply create a new page in WordPress and add [pagelist] shortcode in it.

只需在WordPress中创建一个新页面,然后在其中添加[pagelist]简码即可。

Displaying a simple page list on a sitemap page in WordPress

This shortcode will show a simple nested list of all your pages.

该短代码将显示所有页面的简单嵌套列表。

You can use this or any other shortcode in WordPress text widgets. If shortcodes do not work in widgets on your site, then you need to enable them. Add this line to your theme’s functions.php file or a site-specific plugin.

您可以在WordPress文本小部件中使用此代码或任何其他短代码。 如果短代码在您网站上的小部件中不起作用,则需要启用它们。 将此行添加到主题的functions.php文件或特定站点的插件中


add_filter('widget_text','do_shortcode');

在WordPress中显示父页面的子页面 (Display Child Pages For a Parent Page in WordPress)

Earlier we showed you different ways to display child pages on a parent page in WordPress. Page-list makes it easier for you to display child pages on a parent page.

之前我们向您展示了在WordPress 的父页面上显示子页面的不同方法。 页面列表使您更容易在父页面上显示子页面。

All you need to do is add [subpages] shortcode on the parent page.

您需要做的就是在父页面上添加[subpages]简码。

Displaying child pages on a parent page in WordPress

You can also use the shortcode inside a text widget. Check out how to show and hide widgets on specific WordPress pages.

您也可以在文本小部件内使用简码。 了解如何在特定的WordPress页面上显示和隐藏小部件

在WordPress页面上显示同级页面 (Display Sibling Pages on a WordPress Page)

Sibling pages are the child pages which share the same parent page. You can display sibling pages by using the [siblings] shortcode on a page or inside a widget.

兄弟页面是共享相同父页面的子页面。 您可以通过使用页面上或窗口小部件内的[siblings]短代码来显示同级页面。

Showing sibling pages for a WordPress page
显示页面列表的缩略图和节选 (Show Page List With Thumbnail and Excerpt)

Page-list plugin comes with another shortcode [page_ext]. This shortcode offers extended features to display your page lists in WordPress.

页面列表插件附带另一个短代码[page_ext] 。 此短代码提供了扩展功能,可在WordPress中显示您的页面列表。

You can use it to display a list of pages with featured image and excerpt. Like this:

您可以使用它显示带有特色图像和摘录的页面列表。 像这样:

[pagelist_ext show_image="1" image_width="50"]

[pagelist_ext show_image="1" image_width="50"]

You can adjust the image size by using the image_width parameter.

您可以使用image_width参数调整图像大小。

Showing a page list with thumbnail and excerpt

You can also control the excerpt length by using the limit_content parameter within the shortcode.

您还可以通过使用简码中的limit_content参数来控制摘录长度。

[pagelist_ext limit_content="100"]

[pagelist_ext limit_content="100"]

If you don’t want to display the excerpt, then you can turn it off by using the show_content parameter with the shortcode.

如果您不想显示摘录,则可以通过将show_content参数与简码一起使用来将其关闭。

[pagelist_ext show_content="0"]

[pagelist_ext show_content="0"]

For more advanced options, check out the full list of parameters that you can use with these shortcodes.

有关更多高级选项,请查看可与这些短代码一起使用的参数的完整列表

We hope this article helped you easily show a page list with thumbnails in 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 Google+.

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

翻译自: https://www.wpbeginner.com/plugins/how-to-easily-show-a-page-list-with-thumbnails-in-wordpress/

wordpress 缩略图

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
WordPress,你可以通过添加特色视频缩略图来为你的文章或页面增添美观的效果。根据引用提供的教程,可以按照以下步骤来实现: 1. 首先,确保你已经安装并激活了"Featured Video Plus"插件。这个插件可以让你方便地添加特色视频缩略图。 2. 在编辑文章或页面页面,向下滚动到"Featured Video"选项。这个选项位于编辑器下方的"文档"选项卡旁边。 3. 在"Featured Video"选项,*** 除此之外,如果你想要设置默认的后备图片,可以参考引用提到的最佳功能图片插件和教程。这些插件可以让你为没有特色视频的文章自动分配一个默认的后备图片。 希望这些信息对你有所帮助!如果你还有其他问题,请随时向我提问。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *2* [wordpress 缩略图_如何在WordPress添加精选视频缩略图](https://blog.csdn.net/cumyupx7788305/article/details/108606727)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *3* [wordpress 缩略图_如何为WordPress发布缩略图设置默认的备用图片](https://blog.csdn.net/cumohuo9136/article/details/108608811)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值