Show background graphic only for first post displayed on index.php page…
-
I am trying to show a “New Post” graphic for the newest post and the first post displayed on the index.php page. Here is an example:
https://zemens.com/2007/?page_id=4
The problem is that when the user goest to the “Next” page to see Older posts, the loop re-displays the graphic.
I have a PHP variable in the Loop which controls a CSS class for displaying this graphic, and this variable is assigned at the top of the index.php page, but it seems that when the Loop is exited and the Next page is summoned, the index.php page reloads and the variable is reassigned so that the FIRST post on the Next page also shows the new post icon.
I hope this makes sense. Can anyone suggest a way to make this graphic only appear on the first post on the first page displayed?
Thanks,
-dz
- The topic ‘Show background graphic only for first post displayed on index.php page…’ is closed to new replies.