Linux 软件免费装

Mark New Posts

开发者 ilychkov
更新时间 2023年10月9日 09:10
PHP版本: 3.3 及以上
版权: MIT

标签

highlight unread new posts unread posts

下载

6.3.18 6.5.10 6.5.12 6.5.24 6.5.4 6.5.6 6.9.22 6.9.26 6.9.28 7.0.0 7.0.1 6.5.5 7.5.1 5.5.8 7.1.0 7.3.0 7.3.1 5.6.4 7.2.0 7.3.2 7.4.0 7.5.0 5.5.12

详情介绍:

Highlight unread posts on your blog. Features:

屏幕截图:

  • Marker type: "New" text (Twenty Twenty)
  • Marker type: Circle (old WP theme)

常见问题:

  1. How can I check that the plugin works?

  1. Install and activate the plugin;
  2. Open your blog's main page;
  3. Add a new post to your blog;
  4. Open the main page once again. An orange circle should appear to the left of the new post's title.

  1. Is it possible to highlight all the posts published in a recent few days for new visitors?

Yes. Just activate these two options:

  • "A post only stays highlighted for N days after publishing" (specify for how long a post should be considered new)
  • "Show all existing posts as new to new visitors" (so all new visitors will see those posts marked as unread)

  1. The plugin is exploding my page's markup. How to fix it?

Try to enable the option "Check page markup before displaying a marker" (plugin options, advanced settings).

  1. What do I need the mnp_is_new_post() and mnp_new_posts_count() functions for?

These two functions may be useful for developing WordPress themes. mnp_is_new_post($post) Returns true if specific post is unread, otherwise false. Parameters: $post (optional) - post ID or object. mnp_new_posts_count($query) Returns the total number of unread posts. Parameters: $query (optional) - WP_Query query string. Example: echo mnp_new_posts_count('cat=1'); This will show the number of unread posts in category with id = 1.

更新日志:

7.5.0 7.4.0 7.3.2 7.3.1 7.3.0 7.2.0 7.1.0 7.0.1 7.0.0 6.9.28 6.9.26 6.9.22 6.5.24 6.5.12 6.5.10 6.5.6 6.5.5 6.5.4 6.3.18 5.6.4 5.5.12 5.5.8