![]() |
Finding if only 1 post on page
Is there a way of finding out if there's only one post on a page within the template? I have an ad displaying underneath the first post and another after the last post. When there is only 1 post on the page there's 2 ads after each other, which doesn't look good.
TIA |
Try this for the conditional for the banner after the first post. What it says is: "if this is the first post and not the last, then do this."
Code:
<if condition="$post[postcount]==1 AND !$post['islastshown']"> |
All times are GMT. The time now is 06:04 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|