-
AuthorPosts
-
July 5, 2016 at 10:15 am #656927
Hello,
Is there a way to mark a post as New (unread by the user) by making a star, image or text appear next to the post name in a widget.
I tried with the “Mark new posts” plugin, which in principle does what I want. But it only adds the unread mark to the post header when viewing the post the first time. The unread mark does not appear in the widgets I use to list posts of a certain category.Any input is much appreciated.
Thanks
July 6, 2016 at 2:01 pm #657436Hi JacobSalomonsen,
It sound like that would take a lot of customisations to the theme and would be out of scope for theme support unfortunately. I might have misunderstood your request, if you think that is the case then please try to explain a bit further and post a link to your site. If you are looking for a freelancer to help you out with customisation then please try contacting Codeable
Thanks,
RikardJuly 6, 2016 at 2:18 pm #657453Hi Rikard,
Thanks for getting back. Here’s what I am trying to accomplish:
I would like to display a symbol (star, image or simply a css rule) next to the name of a post that has not been read by the logged-in user.
On our intranet we have a bunch of posts with different categories. These categories are displayed on the front page as widgets using the “Enfold Latest News” widget filtered on each category. It would be amazing if “Unread-symbol” could be next to a post that the logged-in user has not read.
The “Mark new posts” plugin does almost this – although it only displays the mark in the header of each post – not in the widget.
Hope this helps. Thanks again for your reply.
BR
JacobJuly 9, 2016 at 1:33 am #658631Hi,
Using
Mark new posts
would probably be the more convenient option, perhaps we can mod the widget function to make it work together, can you post a link to your site?Best regards,
JosueJuly 11, 2016 at 8:16 am #659103Hi Josue,
Thanks for getting back. I think the approach you suggest sounds good. However posting a link for our site is not an option. But the site is using the newest Enfold (child) theme and a few plugins that do not modify standard Enfold features. So I think a general modification of the Widget to support what I described earlier, should work fine.
I highly appreciate your interest in this matter.
Best
JacobJuly 12, 2016 at 3:50 am #659642Hi,
Which exact Widget are you using? can you post a screenshot of the back-end?
Best regards,
JosueJuly 12, 2016 at 9:41 am #659718Hi again,
I’m using the Enfold Child Latest News. Please see screenshot links below.So basically I need the Latest News widget to be able to display the Unread Symbol provided by the “Mark New Posts” plugin.
Thanks – I really appreciate your help.BR
JacobJuly 12, 2016 at 6:55 pm #660029OK, you’ll need to mod the plugin, open /wp-content/plugins/mark-new-posts/mark-new-posts.php and 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;
Best regards,
JosueJuly 13, 2016 at 10:56 am #660258Hello again Josue,
Top Tip! Thanks
It works like a dream.Thanks to you and the other guys at your team for all your excellent help.
BR
JacobJuly 13, 2016 at 9:03 pm #660560You are welcome Jacob, glad to help :)
Regards,
JosueJuly 13, 2020 at 3:38 pm #1229976Hello Josue,
great work… is there any chance to get this working only in the latest news widget but not in the Post loop?
Regards,
Bastian
July 13, 2020 at 7:59 pm #1230090Hi Bastian,
Unfortunately, it would require quite some time and customization of the theme to achieve this, so I am sorry to tell you that this is not covered by our support. However, if it’s really important for you to get this done, you can always hire a freelancer to do the job for you :)
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.