该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

SOUP – Show off Upcoming Posts

描述

Like this plugin? Consider leaving a quick review or writing about how you’ve used it on your site – send me a link to that write up if you do.

This plugin is maintained on GitHub, so feel free to use the repository for reporting issues, submitting feature requests and submitting pull requests.

SOUP creates a widget in your sidebar which allows you to display your upcoming posts (scheduled, drafts, or both) to your readers. The idea is to entice your readers to come back and read the article once it gets published, or better yet, subscribe to your RSS feed and/or newsletter.

Here are the configurable options for the widget:

  • Title of sidebar widget
  • Number of upcoming posts to display (always in ascending order – newest first)
  • Choose whether to show date of upcoming post
  • Display order of the posts (next post first or random order)
  • Message to display for when there are no scheduled posts or drafts
  • Show/hide newsletter link
  • Include link to sign up to newsletter

I’ve got plans to continue developing and updating this plugin. If you have any suggestions on revisions that you’d like to see made, please get in touch or find me on Twitter.

I also run Do It With WordPress, which has an array of tutorials for managing, modifying and maintaining your WordPress sites, as well as The WP Butler, a service for keeping your site maintained, backed up, updated and secure.

屏幕截图

  • An example of the widget in use.

安装

  1. Upload soup-show-off-upcoming-posts folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Go to Appearance > Widgets to put the widget in your selected sidebar.
  4. Set your settings, hit Save and go to your site to see it in action.

常见问题

How do I modify WP_Query to get more specific results

There is a filter (soup_query) for the WP_Query args, so you can add and modify args as needed to get the result you need.

For example, to limit your results to posts in category 3, you might add something like the function below to your functionality plugin:

function limit_soup( $args ) {
    $args['cat'] = 3;
    return $args;
}

add_filter( 'soup_query', 'limit_soup' );
Are there more features planned in future?

Absolutely. I’ll be providing more options and upgrades in the near future. You can stay up to date by following me on Twitter. If you have an idea for a new feature, you can create a new feature request on GitHub. If you don’t have a GitHub account, then tell me what this widget should do that it doesn’t currently.

I don’t have a newsletter. Is this functionality lost on me?

Many WordPress users send their RSS feed through FeedBurner, which has the option to deliver your latest posts by email to anyone who subscribes. Just log in to FeedBurner, go to the Publicize tab and select Email Subscriptions where you’ll be able to grab the link.

I’m having issues. What do I do?

The best thing to do is to submit an issue on GitHub. If you don’t have a GitHub account, then get in touch with me and I’ll see about getting it fixed.

评价

2017 年 4 月 11 日 1 回复
I love this widget and the ease with which it works. Just wish I could add pages to it too.
2017 年 3 月 11 日
Allows your visitors to see future posts. It gives them something to look forward to. Shows that you keep content coming in on your website.
2016 年 9 月 3 日
SOUP is simple, straightforward and just works. It’s easy to configure – and I like being able to build my followers’ anticipation of what’s to come. I needed support after a month or so and Dave was quick to respond. It turned out that the problem was unrelated to SOUP and was fixed immediately. ‘Can’t imagine how the service could have been any better! Thanks, Dave. (‘Looks as if Do It With WordPress – Dave’s site – has some good stuff WP on it , too…)
阅读所有6条评价

贡献者及开发者

「SOUP – Show off Upcoming Posts」是开源软件。 以下人员对此插件做出了贡献。

贡献者

「SOUP – Show off Upcoming Posts」插件已被翻译至 2 种本地化语言。 感谢所有译者为本插件所做的贡献。

帮助将「SOUP – Show off Upcoming Posts」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

2.3

Release date: May 23, 2016

  • Breaking changes for sites using < v2.2.1 See changelog for changes in previous versions.
  • Improve coding standards
  • Properly implemented i18n
  • Removed RSS icon image and replaced with dashicon

2.2.1

Release date: May 20, 2016

  • Breaking change: args for category, post status and post type removed from WP_Query. If you wish to continue using these, you need to use the soup_query filter. See the FAQ tab for details on how to use this.
  • Added support for wordpress.org language packs

2.1

Release date: January 26, 2016

  • Removed settings for category, post status and post types from the widget control panel. To modify the category, post status or post types that SOUP displays, you now need to use the filter provided. See the FAQ tab for details on how to use this, or file a support ticket.

2.0

Release date: October 1, 2015

  • Refactored query in widget to use WP_Query class. This will allow for the deprecation of certain settings in the widget in the next release (2.1). The intent is to use the soup_query filter instead (see FAQs for example). Settings will be removed in 2.1 and the args will be removed from the query in 2.2.1.