![]() |
Calling Wordprss genius's again! Conditional includes on category page 1?
I understand how to do a conditional include to display on many different pages, but I would like to have an included div associated to each category on my site. That's easy enough, but I would like that condition to include that the div should only be included on THE FIRST PAGE of the category display.
Is that doable, or will my included div only be able to show on each page of the category listing? |
not sure if you want an include or what, but you want to use the variable is_paged()
Code:
<?php if (is_category() && !is_paged()) { ?> |
Quote:
I'll google the is_paged() variable now and see what it has to say. Never used it before. Might work. |
well that will do it
|
if you wanted to do an automated msg with the cat name you would do something like this.
Code:
<?php if (is_category() && !is_paged()) { ?> |
cheers, thanks again fris
|
no problem.
|
All times are GMT -7. The time now is 04:58 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc