wordpress显示摘要_如何在WordPress中按天,周和月显示热门帖子

wordpress显示摘要

Do you want to display your most popular posts by day, week, month, and all time in WordPress? Popular posts allow your visitors to quickly discover your top content which helps you increase user engagement and page views. In this article, we will show you how to display popular posts by day, week, month, and all time in WordPress.

您是否要按天,周,月和所有时间在WordPress中显示最受欢迎的帖子? 热门帖子可让访问者快速发现您的热门内容,从而帮助您增加用户参与度和页面浏览量。 在本文中,我们将向您展示如何按天,周,月和所有时间在WordPress中显示热门帖子。

Display popular posts by day, week, month, and all time in WordPress
为什么要在WordPress中显示热门帖子? (Why Display Popular Posts in WordPress?)

When you start a WordPress blog, you don’t have much content, which allows you to manually display selected posts in a sidebar widget.

当您启动WordPress博客时 ,您没有太多内容,因此您可以在边栏小部件中手动显示选定的帖子。

However as your website grows, you will notice that older articles on your website don’t get much exposure. By showcasing your top content, you allow new users to quickly discover the best articles on your website. This boosts user engagement on your website and increases your page views.

但是,随着网站的发展,您会发现网站上的旧文章没有太多曝光。 通过展示您的热门内容,您可以让新用户快速发现您网站上的最佳文章。 这可以提高用户在您网站上的参与度 ,并增加页面浏览量。

Now the problem is that if you are showing your all time popular articles, then a very limited set of articles get repeated exposure. You can diversify it by displaying popular posts by day, week, or month as well.

现在的问题是,如果您要展示您一直受欢迎的文章,那么很少的文章集会反复出现。 您还可以通过按天,周或月显示热门帖子来使其多样化。

Let’s take a look at how to easily display popular posts in WordPress by day, week, month, or all time.

让我们看一下如何按天,周,月或所有时间轻松显示WordPress中的热门帖子。

影片教学 (Video Tutorial)

演示地址

If you don’t want to watch the video tutorial, then you can continue reading the text version below:

如果您不想观看视频教程,则可以继续阅读以下文本版本:

按日,周,月和所有时间创建热门帖子 (Creating Popular Posts By Day, Week, Month, and All Time Widgets)

First, you will need to install and activate the WordPress Popular Posts plugin. For more details, see our step by step guide on how to install a WordPress plugin.

首先,您需要安装并激活WordPress Popular Posts插件。 有关更多详细信息,请参阅有关如何安装WordPress插件的分步指南。

WordPress Popular Posts plugin is the best popular posts plugin for WordPress. It offers tons of options like time range, excerpt, featured images, views count, and more.

WordPress的热门职位插件是最好的热门职位WordPress插件 。 它提供了大量的选项,例如时间范围, 摘录特色图片 ,观看次数等等。

Upon activation, you need to head over to Appearance » Widgets page to drag and drop the WordPress Popular Posts widget to any sidebar.

激活后,您需要转到Appearance»Widgets页面,将WordPress Popular Posts Widget拖放到任何侧边栏。

Display popular posts for the day

You can name this widget ‘Today’ and under the time range field select last 24 hours. After that you can review other widget options and set them to your liking. Don’t forget to click on the save button to store your widget settings.

您可以将此小部件命名为“ Today”,然后在“时间范围”字段下选择“过去24小时”。 之后,您可以查看其他小部件选项并将其设置为您喜欢的选项。 不要忘记单击“保存”按钮来存储您的小部件设置。

Next, you need to add another popular posts widget and name it ‘Week’. In the widget settings, you need to select ‘7 days’ under time range field and then click on the save button.

接下来,您需要添加另一个热门帖子小部件并将其命名为“ Week”。 在窗口小部件设置中,您需要在时间范围字段下选择“ 7天”,然后单击“保存”按钮。

Repeat the process to add monthly and all time popular posts widgets as well.

重复此过程以添加每月和所有时间受欢迎的帖子窗口小部件。

All popular posts widgets

Don’t worry about the widget placement at this time because we will adjust them in the next step.

现在不要担心小部件的放置,因为我们将在下一步中对其进行调整。

为热门帖子创建选项卡式小部件 (Creating a Tabbed Widget for Popular Posts)

In this part of the tutorial, we will create a tabbed widget for our WordPress sidebar. This will allow us to show our popular posts widgets inside a single widget with tabs.

在本教程的这一部分中,我们将为WordPress边栏创建一个选项卡式小部件。 这将使我们能够在带有选项卡的单个窗口小部件中显示受欢迎的帖子窗口小部件。

First, you need to install and activate the Ultimate Tabbed Widget plugin. For more details, see our step by step guide on how to install a WordPress plugin.

首先,您需要安装并激活Ultimate Tabbed Widget插件。 有关更多详细信息,请参阅有关如何安装WordPress插件的分步指南。

Upon activation, head over to Appearance » Widgets page, and you will notice a new widget ready area labeled ‘Default Tabbed Widget Area’.

激活后,转到外观»小部件页面,您会注意到一个新的小部件就绪区域,标记为“默认选项卡式小部件区域”。

tabbed widgets area

You will need to move all your popular post widgets into this particular widget area.

您将需要将所有流行的帖子窗口小部件移动到该特定窗口小部件区域。

Tabbed widget area with all popular posts widgets

Next, you need to locate the ‘Ultimate Tabbed Widgets’ in the available widgets and add it to your website’s sidebar where you want to display popular posts.

接下来,您需要在可用的窗口小部件中找到“最终选项卡式窗口小部件”,并将其添加到您要显示热门帖子的网站侧边栏中。

Ultimate tabbed widget settings

In the widget settings, provide a title for your popular posts widget. Under widget area field, you need to select ‘Default tabbed widget area’, and select tabs for template field.

在窗口小部件设置中,为您的热门帖子窗口小部件提供标题。 在窗口小部件区域字段下,您需要选择“默认选项卡式窗口小部件区域”,然后为模板字段选择选项卡。

Don’t forget to click on the ‘Save’ button to store your changes.

不要忘记单击“保存”按钮来存储您的更改。

You can now visit your website to see your popular posts widget showing top articles by day, week, month and all time tabs.

现在,您可以访问您的网站以查看热门帖子小部件,其中按日期,星期,月份和所有时间选项卡显示热门文章。

Popular posts by day, week, month, and all time

You can rearrange the tab order by simply moving widgets up and down in the ‘Default tabbed widget area’.

您只需在“默认选项卡式小部件区域”中上下移动小部件即可重新排列选项卡顺序。

We hope this article helped you display popular posts by day, week, month, and all time in WordPress. You may also want to see these actionable tips to drive traffic to your WordPress blog.

我们希望本文能帮助您按天,周,月和所有时间在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视频教程。 您也可以在TwitterFacebook上找到我们。

翻译自: https://www.wpbeginner.com/wp-tutorials/display-popular-posts-by-day-week-month-and-all-time-in-wordpress/

wordpress显示摘要

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值