Creating if statement for is_single to conditionally show css div code
-
Hi,
Maybe this isn’t hard, and I’m sure others want to do this, but I can’t get it to work. I’m on WP 2.6.5
GOAL: to have nicely formatted (including blockquote formatting) wp_link_pages at bottom of multi-page posts
So I want it to show on multi-page posts (<!–nextpage–>), but NOT on single page posts (as I don’t want formatting).
CODE:
<?php if(!is_single()) { ?> <div class="pagelink"> <?php wp_link_pages('pagelink= %'); ?> </div> <?php } ?>Can’t get it to work. Sorry if obvious error, I’m new.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Creating if statement for is_single to conditionally show css div code’ is closed to new replies.