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

Instant Breaking News

描述

Instant Breaking News or IBN,
will allow you to pin posts and feature them as “Breaking News” at the header of your website.

For a longer documentation check the Plugin GitHub repository here.

How it works ?

Instant Breaking News plugin will appear in your WP Dashboard menu once it’s activated.
You’ll find the plugin Options Page under the name Breaking News.

From the options page you’ll be able to change the “Breaking News” banner title, background and text colors.
You’ll also be able to preview the current pinned post and go to it’s edit page directly from here.
However if you haven’t pinned anything yet, you’ll be able to go to your Posts archive too!

Pinning your first post:

Once you choose which will be your first Breaking News post in its Edit screen you’ll find a newly created metabox under the name of Breaking News Options somewhere at the bottom of the Edit screen.

There you’ll find the following three options:
1. Make this post breaking news: Once checked it’ll pin your post and overwrite previously pinned posts. Sadly at version 1.0 you can have only one pinned post at a time.
2. Custom breaking news title: This setting allows you to choose a specific title for your post, which will be presented only in the Breaking News banner.
3. Set an expiration Date & Time: This option allows you to choose when the pinned post to disappear from your website automatically.

There is something that you should remember about the Expiring Pins functionality.
Instant Breaking News plugin automatically takes your server time and converts it to your WordPress Timezone.
That is extremely important to remember when setting the expiration date & time of your post, because if you pick a time which has already passed at your WordPress Timezone that post will be automatically unpinned in order to protect you from pinning expired posts. However if that happens don’t worry! Once you set the new date and time you’ll be able to re-pin it again, just by checking the Make this post breaking news option again.

Note:

This plugin will work with almost every standart WordPress theme.
If your template has unique structure, the plugin will need a bit of tweeking in order to run properly.
The change that’ll be required is at the /assets/scripts/public.js file.
You’ll have to specify where on your website you would like to attach the Breaking News banner through those two lines:

let $firstHeader = jQuery( "header" ).first();
jQuery( container ).insertAfter( $firstHeader );

That’s it, let’s start pinning!

Log:

  • 1.1 – Update tested version of WP Core to 6.0.2
  • 1.0 – Release

安装

  1. Upload the plugin files to the /wp-content/plugins/plugin-name directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Use the Settings->Plugin Name screen to configure the plugin

Alternative:
Download and activate the plugin from WordPress.org or
clone the repository from GitHub – https://github.com/Gero0Nikolov/IBN-WordPress-Plugin –
to your wp-content/wp-plugins/ folder and activate it from the WordPress Dashboard after that.

评价

阅读所有1条评价

贡献者及开发者

“Instant Breaking News” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“Instant Breaking News”翻译成您的语言。

对开发感兴趣吗?

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