Mark New Posts
Highlight unread posts on your blog. Key features: Works right out of the box Uses cookies, no authorization required 4 different types of markers for highlighting posts (a “new” text label, an orange circle, etc.) Customizable background color for unread post titles There’s a setting to determine w
About this tool.
Highlight unread posts on your blog.
Key features:
- Works right out of the box
- Uses cookies, no authorization required
- 4 different types of markers for highlighting posts (a “new” text label, an orange circle, etc.)
- Customizable background color for unread post titles
There’s a setting to determine when a post should be considered read. You can pick one of the following:
- after it was opened
- after it was displayed in the post list
- after opening any page of the blog
Functions available for theme developers:
- mnp_is_new_post($post) – check if a post is unread
- mnp_new_posts_count($query) – get unread posts count
Frequently asked questions.
1. How can I check that the plugin works?
Install and activate the plugin; Open your blog’s main page; Add a new post to your blog; Open the main page once again. An orange circle should appear to the left of the new post’s title.
2. Is it possible to highlight all the posts published in a recent few days for new visitors?
Yes. Just set these two options: * “A post only stays highlighted for N days after publishing” -> set the amount of days * “Show all existing posts as new to new visitors” -> check
3. 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).
4. 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 a specific post is unread, otherwise false. Parameters: $post (optional) – post ID or object.