Skip Navigation

[Resolved] Marking Last 100 posts as NEW

This support ticket is created 5 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.
Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 1 voice and has 0 replies.

>

Assisted by: Waqar.

Author
Posts
#1197106

I want to add a transparent .png "NEW" to the last 100 posts.
I cannot use a date, as the posts have older "post dates".
So I would use the post ID.

Is this possible within a view, e.g. with javascript, or in the loop itself?

This is part of the code in the template for the view (with additional .css)
But this would mark ALL posts with the "NEW" png of course.

<div class="pngcontainer1">
[wpv-post-featured-image size="medium"]
<img src="hidden link" />
</div>
<div id="Auszug" style="background-color: #FFFFFF;padding-left: 10px">
<p style="font-size:19px; color:#cc2828"> [wpv-post-type show="plural"] </p>
<h5>[wpv-post-link]</h5>
[wpv-post-date]