Conditional Tags with Post Count
-
Ok I have a what I think is a simple question about using the post count with a conditional tag. I am using a JQuery script to make a simple scroller. Basically if there are 10 posts there will be a numbered tab that will show and when there is less then 10 posts the numbers wont show. Its supposed to be a siple workaround for the script i am using. I only display 10 posts per page. That way if I have like 37 posts, 2 pages will have the numbered tab and the third will only og the next/prev button.
Here is the script i am using.
<?php if ( $postcount >= 10 ) { ?> <div class="jcarousel-control"> <a class="cufon-number" href="#">1</a> <a class="cufon-number" href="#">2</a> <a class="cufon-number" href="#">3</a> <a class="cufon-number" href="#">4</a> <a class="cufon-number" href="#">5</a> <a class="cufon-number" href="#">6</a> <a class="cufon-number" href="#">7</a> <a class="cufon-number" href="#">8</a> <a class="cufon-number" href="#">9</a> <a class="cufon-number" href="#">10</a> </div><!--JCAROUSEL CONTROL END--> <?php } else { ?> <!-- "else" Content Here --> <?php } ?>
But Its not working. HELP!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Conditional Tags with Post Count’ is closed to new replies.