I had the same problem with my theme. But through the magnificent help at kriesi.at they showed me a way to mod the plugin to work with my theme to display the “NEW” message on the frontpage (It works in my widgets and menus as well as on the post itself).
Here’s the trick:
Deactivate the plugin
Open /wp-content/plugins/mark-new-posts/mark-new-posts.php
(You may want to make a backup of the file before you edit it.
Look for this line:
if (!in_the_loop() || !$this->is_new_post($post_id)) return $title;
Replace it by:
if (!$this->is_new_post($post_id)) return $title;
Activate the plugin again.
Please note, this does not work with the “Circle” setting so I used one of the other options.
Thread Starter
Stefan
(@saznajnovo)
Ok, it’s works but only with advanced setting enabled. And I see this:
How to solve that?
EDIT:
I solve this in dirty way, but it works.
Editing mark-new-posts/mark-new-posts.php
if (!$this->is_new_post($post_id)) return $title;
^ this is your solution, I leave that, works fine.
return $this->options->check_markup ? '<span title="New article since your last visit" class="new-article">• </span>' . $title . '' : $this->wrap_title($title);
^ and here I put my own “text” that will be place before title. In this case text is dot (• – alt+7) and I do css on that dot (span), and look identical 🙂 Work anywhere.
And little CSS:
#new-article {
color: red;
coursor: help;
}
^ color red just to color dot, and coursor only to show help courser when user hover that dot so he know he need to wait to see popup.
I’m not sure. I would think the advanced settings would make it possible to avoid that – but I do not know enough of the code to help you on this one. Maybe the plug-in author can help.