{"id":36234,"date":"2015-05-12T07:25:30","date_gmt":"2015-05-12T07:25:30","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/mark-new-posts\/"},"modified":"2024-12-06T17:58:19","modified_gmt":"2024-12-06T17:58:19","slug":"mark-new-posts","status":"publish","type":"plugin","link":"https:\/\/pcd.wordpress.org\/plugins\/mark-new-posts\/","author":14250620,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"7.6","stable_tag":"7.6","tested":"6.7.5","requires":"3.3","requires_php":"","requires_plugins":null,"header_name":"Mark New Posts","header_author":"i.lychkov","header_description":"","assets_banners_color":"","last_updated":"2024-12-06 17:58:19","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/wordpress.org\/plugins\/mark-new-posts\/","header_author_uri":"https:\/\/profiles.wordpress.org\/ilychkov\/","rating":4.8,"author_block_rating":0,"active_installs":500,"downloads":14045,"num_ratings":12,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","faq","changelog"],"tags":{"5.5.12":{"tag":"5.5.12","author":"tssoft","date":"2015-05-12 15:55:53"},"5.5.8":{"tag":"5.5.8","author":"tssoft","date":"2015-05-12 08:11:58"},"5.6.4":{"tag":"5.6.4","author":"tssoft","date":"2015-06-04 08:22:23"},"6.3.18":{"tag":"6.3.18","author":"tssoft","date":"2016-03-18 16:05:01"},"6.5.10":{"tag":"6.5.10","author":"tssoft","date":"2016-05-12 14:51:35"},"6.5.12":{"tag":"6.5.12","author":"tssoft","date":"2016-05-12 14:59:32"},"6.5.24":{"tag":"6.5.24","author":"tssoft","date":"2016-05-24 15:01:15"},"6.5.4":{"tag":"6.5.4","author":"tssoft","date":"2016-05-04 10:19:57"},"6.5.5":{"tag":"6.5.5","author":"tssoft","date":"2016-05-05 15:37:07"},"6.5.6":{"tag":"6.5.6","author":"tssoft","date":"2016-05-06 10:05:13"},"6.9.22":{"tag":"6.9.22","author":"tssoft","date":"2016-09-22 16:28:02"},"6.9.26":{"tag":"6.9.26","author":"tssoft","date":"2016-09-26 08:52:46"},"6.9.28":{"tag":"6.9.28","author":"tssoft","date":"2016-09-28 14:30:21"},"7.0.0":{"tag":"7.0.0","author":"i.lychkov","date":"2020-05-20 17:44:02"},"7.0.1":{"tag":"7.0.1","author":"i.lychkov","date":"2020-05-20 20:40:03"},"7.1.0":{"tag":"7.1.0","author":"i.lychkov","date":"2021-05-30 08:52:10"},"7.2.0":{"tag":"7.2.0","author":"i.lychkov","date":"2021-07-11 16:24:33"},"7.3.0":{"tag":"7.3.0","author":"i.lychkov","date":"2021-07-11 17:44:09"},"7.3.1":{"tag":"7.3.1","author":"i.lychkov","date":"2021-07-11 18:38:08"},"7.3.2":{"tag":"7.3.2","author":"i.lychkov","date":"2021-10-05 20:07:14"},"7.4.0":{"tag":"7.4.0","author":"i.lychkov","date":"2023-09-23 13:14:16"},"7.5.0":{"tag":"7.5.0","author":"i.lychkov","date":"2023-10-09 01:10:33"},"7.5.1":{"tag":"7.5.1","author":"i.lychkov","date":"2023-10-21 21:07:48"},"7.6":{"tag":"7.6","author":"i.lychkov","date":"2024-12-06 17:58:19"}},"upgrade_notice":[],"ratings":{"1":0,"2":1,"3":0,"4":0,"5":11},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":2970633,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":2970633,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["5.5.12","5.5.8","5.6.4","6.3.18","6.5.10","6.5.12","6.5.24","6.5.4","6.5.5","6.5.6","6.9.22","6.9.26","6.9.28","7.0.0","7.0.1","7.1.0","7.2.0","7.3.0","7.3.1","7.3.2","7.4.0","7.5.0","7.5.1","7.6"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":2562303,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":2562303,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":2562303,"resolution":"3","location":"assets","locale":""}},"screenshots":{"1":"Marker type: \"New\" text (Twenty Twenty-One)","2":"Marker type: \"New\" text (Twenty Twenty)","3":"Marker type: Circle (old WP theme)"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[3986,16606,11280,42179],"plugin_category":[],"plugin_contributors":[186052],"plugin_business_model":[],"class_list":["post-36234","plugin","type-plugin","status-publish","hentry","plugin_tags-highlight","plugin_tags-new-posts","plugin_tags-unread","plugin_tags-unread-posts","plugin_contributors-ilychkov","plugin_committers-ilychkov"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/mark-new-posts\/assets\/icon-128x128.png?rev=2970633","icon_2x":"https:\/\/ps.w.org\/mark-new-posts\/assets\/icon-256x256.png?rev=2970633","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/mark-new-posts\/assets\/screenshot-1.png?rev=2562303","caption":"Marker type: \"New\" text (Twenty Twenty-One)"},{"src":"https:\/\/ps.w.org\/mark-new-posts\/assets\/screenshot-2.png?rev=2562303","caption":"Marker type: \"New\" text (Twenty Twenty)"},{"src":"https:\/\/ps.w.org\/mark-new-posts\/assets\/screenshot-3.png?rev=2562303","caption":"Marker type: Circle (old WP theme)"}],"raw_content":"<!--section=description-->\n<p>Highlight unread posts on your blog.<\/p>\n\n<p>Key features:<\/p>\n\n<ul>\n<li>Works right out of the box<\/li>\n<li>Uses cookies, no authorization required<\/li>\n<li>4 different types of markers for highlighting posts (a \"new\" text label,\nan orange circle, etc.)<\/li>\n<li>Customizable background color for unread post titles<\/li>\n<\/ul>\n\n<p>There's a setting to determine when a post should be considered read. You can pick one of the following:<\/p>\n\n<ul>\n<li>after it was opened<\/li>\n<li>after it was displayed in the post list<\/li>\n<li>after opening any page of the blog<\/li>\n<\/ul>\n\n<p>Functions available for theme developers:<\/p>\n\n<ul>\n<li>mnp_is_new_post($post) - check if a post is unread<\/li>\n<li>mnp_new_posts_count($query) - get unread posts count<\/li>\n<\/ul>\n\n<!--section=faq-->\n<dl>\n<dt id='1.%20how%20can%20i%20check%20that%20the%20plugin%20works%3F'><h3>1. How can I check that the plugin works?<\/h3><\/dt>\n<dd><ol>\n<li>Install and activate the plugin;<\/li>\n<li>Open your blog's main page;<\/li>\n<li>Add a new post to your blog;<\/li>\n<li>Open the main page once again. An orange circle should appear to the left of the new post's title.<\/li>\n<\/ol><\/dd>\n<dt id='2.%20is%20it%20possible%20to%20highlight%20all%20the%20posts%20published%20in%20a%20recent%20few%20days%20for%20new%20visitors%3F'><h3>2. Is it possible to highlight all the posts published in a recent few days for new visitors?<\/h3><\/dt>\n<dd><p>Yes. Just set these two options:\n * <em>\"A post only stays highlighted for N days after publishing\"<\/em> -&gt; set the amount of days\n * <em>\"Show all existing posts as new to new visitors\"<\/em> -&gt; check<\/p><\/dd>\n<dt id='3.%20the%20plugin%20is%20exploding%20my%20page%27s%20markup.%20how%20to%20fix%20it%3F'><h3>3. The plugin is exploding my page's markup. How to fix it?<\/h3><\/dt>\n<dd><p>Try to enable the option <em>\"Check page markup before displaying a marker\"<\/em> (plugin options, advanced settings).<\/p><\/dd>\n<dt id='4.%20what%20do%20i%20need%20the%20mnp_is_new_post%28%29%20and%20mnp_new_posts_count%28%29%20functions%20for%3F'><h3>4. What do I need the mnp_is_new_post() and mnp_new_posts_count() functions for?<\/h3><\/dt>\n<dd><p>These two functions may be useful for developing WordPress themes.<\/p>\n\n<pre><code>mnp_is_new_post($post)\n<\/code><\/pre>\n\n<p>Returns true if a specific post is unread, otherwise false.\nParameters: $post (optional) - post ID or object.<\/p>\n\n<pre><code>mnp_new_posts_count($query)\n<\/code><\/pre>\n\n<p>Returns the total number of unread posts, optionally filtered.\nParameters: $query (optional) - WP_Query query string.\nExample:<\/p>\n\n<pre><code>echo mnp_new_posts_count('cat=1');\n<\/code><\/pre>\n\n<p>This will show the number of unread posts in category with id = 1.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>7.6<\/h4>\n\n<ul>\n<li>Fixed security issue: possibility for non-admin users to update plugin's settings. Thanks to Aiden for reporting.<\/li>\n<\/ul>\n\n<h4>7.5.2<\/h4>\n\n<ul>\n<li>Fixed possible bug in the \"Use JS\" mode with posts not getting marked at all<\/li>\n<\/ul>\n\n<h4>7.5.1<\/h4>\n\n<ul>\n<li>Fixed: \"Allow outside the post list\" option makes markup appear in admin post list<\/li>\n<\/ul>\n\n<h4>7.5.0<\/h4>\n\n<ul>\n<li>\"Allow outside the post list\" option<\/li>\n<li>Cosmetic: fixed some of the texts on the settings page<\/li>\n<\/ul>\n\n<h4>7.4.0<\/h4>\n\n<ul>\n<li>Fixed a conflict with Buddypress. I hope now we can be buddies again. Thanks a lot to teeboy4real and r-a-y!<\/li>\n<li>Improved performance<\/li>\n<li>If you've read this far AND if you like this plugin, why not give it a nice review? It would be lovely!<\/li>\n<\/ul>\n\n<h4>7.3.2<\/h4>\n\n<ul>\n<li>Fixed a conflict with WPForms plugin. A message \"Notice: is_404 was called incorrectly\" appeared when trying to open the Settings page of WPForms.<\/li>\n<\/ul>\n\n<h4>7.3.1<\/h4>\n\n<ul>\n<li>The \"New\" marker type now has a better support for the old built-in WordPress themes, because they're awesome.<\/li>\n<\/ul>\n\n<h4>7.3.0<\/h4>\n\n<ul>\n<li>Post title background colour validation<\/li>\n<li>Marker type \"Custom image\" removed for security reasons<\/li>\n<\/ul>\n\n<h4>7.2.0<\/h4>\n\n<ul>\n<li>An option to change the background colour for unread post titles<\/li>\n<li>Open your blog with ?mnp-test=1 in the page title to test the plugin (all posts will be shown as unread)<\/li>\n<li><em>mnp-title-wrapper<\/em> class replaced with <em>mnp-unread<\/em><\/li>\n<\/ul>\n\n<h4>7.1.0<\/h4>\n\n<ul>\n<li>\"Disable for custom posts\" option<\/li>\n<\/ul>\n\n<h4>7.0.1<\/h4>\n\n<ul>\n<li>Added a new colour for the \"New\" text to fit in the Twenty-Twenty WordPress theme. Now it's the default marker type.<\/li>\n<li>Changed buttons placement in the settings screen. Yeah, I know... Sorry for that.<\/li>\n<li>Fixed flickering pieces of code on blog pages that appear when the \"Check markup\" option is active<\/li>\n<\/ul>\n\n<h4>7.0.0<\/h4>\n\n<ul>\n<li>Back after 4 years of inactivity!<\/li>\n<li>Temporary new logo<\/li>\n<li>Fixed a CSS bug for Image and Flag marker types, where the marker would float away to the left of the screen<\/li>\n<li>Fixed warnings in Debug mode<\/li>\n<\/ul>\n\n<h4>6.9.28<\/h4>\n\n<ul>\n<li>New translation: Russian<\/li>\n<li>New option: mark posts as read after opening any page of the blog<\/li>\n<li>New option: posts stay marked as new only for a certain amount of days after publishing<\/li>\n<li>New option: mark all existing posts as new to new visitors<\/li>\n<li>If the two options above are activated, then when someone visits your blog even for the first time, he will see all the most recent posts highlighted<\/li>\n<\/ul>\n\n<h4>6.9.26<\/h4>\n\n<ul>\n<li>Fixed notices in debug mode<\/li>\n<\/ul>\n\n<h4>6.9.22<\/h4>\n\n<ul>\n<li>mnp_new_posts_count() speed up<\/li>\n<\/ul>\n\n<h4>6.5.24<\/h4>\n\n<ul>\n<li>Fixed minor bug: 2nd argument might not be passed to the_title filter in some themes<\/li>\n<\/ul>\n\n<h4>6.5.12<\/h4>\n\n<ul>\n<li>Fixed blank screen when not running on Apache<\/li>\n<\/ul>\n\n<h4>6.5.10<\/h4>\n\n<ul>\n<li>Unicode flag marker replaced with an image (because of Unicode issues in Firefox)\nicon by <a href=\"http:\/\/www.flaticon.com\/authors\/vectors-market\">Vectors Market<\/a> from <a href=\"http:\/\/www.flaticon.com\">www.flaticon.com<\/a>, <a href=\"https:\/\/creativecommons.org\/licenses\/by\/3.0\/\">CC BY 3.0<\/a> license<\/li>\n<li>Code refactoring and optimization<\/li>\n<li>Better way of markup checking<\/li>\n<li>Settings page redesign<\/li>\n<\/ul>\n\n<h4>6.5.6<\/h4>\n\n<ul>\n<li>Detect prefetching<\/li>\n<\/ul>\n\n<h4>6.5.5<\/h4>\n\n<ul>\n<li>New marker placement: before and after post title<\/li>\n<li>Incorrect markup check is disabled by default to use less memory<\/li>\n<\/ul>\n\n<h4>6.5.4<\/h4>\n\n<ul>\n<li>Fixed: incorrect markup when the_title() is being called from an attribute value<\/li>\n<\/ul>\n\n<h4>6.3.18<\/h4>\n\n<ul>\n<li>\"Mark posts as read only after opening\" option now works for post excerpts too<\/li>\n<\/ul>\n\n<h4>5.6.4<\/h4>\n\n<ul>\n<li>New marker type: flag (unicode character)<\/li>\n<li>New option: the marker can be placed before or after the title of a post<\/li>\n<li>New marker type: custom image<\/li>\n<li>Fixed bug: after opening a post's preview it's getting marked as read<\/li>\n<li>Fixed bug: sometimes the marker falls on another line<\/li>\n<li>Fixed: marker gets wrapped on new line in post's navigation block<\/li>\n<\/ul>\n\n<h4>5.5.12<\/h4>\n\n<ul>\n<li>i18n<\/li>\n<li>Added \"Mark post as read only after opening\" option<\/li>\n<li>New marker type: image. \"Label New Blue\" icon by <a href=\"http:\/\/www.doublejdesign.co.uk\/\">Jack Cai<\/a>, <a href=\"https:\/\/creativecommons.org\/licenses\/by-nd\/3.0\/\">CC BY-ND 3.0<\/a> license<\/li>\n<\/ul>\n\n<h4>5.5.8<\/h4>\n\n<ul>\n<li>This plugin is based upon <a href=\"http:\/\/adambrown.info\/b\/widgets\/tag\/kb-new-posts\/\">KB New Posts 0.1<\/a> by <a href=\"http:\/\/adambrown.info\/\">Adam R. Brown<\/a><\/li>\n<li>New functions for using in WordPress themes: <em>mnp_is_new_post<\/em> and <em>mnp_new_posts_count<\/em><\/li>\n<li>2 new ways of highlighting unread posts<\/li>\n<\/ul>","raw_excerpt":"Highlight unread posts on your blog.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/36234","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=36234"}],"author":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/ilychkov"}],"wp:attachment":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=36234"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=36234"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=36234"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=36234"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=36234"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=36234"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}