Skip Navigation

[Gelöst] Marking Last 100 posts as NEW

This support ticket is created vor 5 Jahren, 9 Monaten. 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)

Dieses Thema enthält 1 Stimme und hat 0 Antworten.

>

Assistiert von: Waqar.

Author
Artikel
#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="versteckter 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]