Conditional author include on single.php
-
I’ve spent many hours on this, and searched the forums and the Web for every combination of terms I can think of.
What I’m trying to do is, on single.php, call an include for a particular author (the include contains a blurb). What I have so far is below, but I can’t seem to exclude all other authors, or include only that author — it displays for every author:
<?php if (the_author_ID !=('2') ) { ?> <?php include (TEMPLATEPATH . '/joe.php'); ?> <?php } ?>
I’ve tried it with other other tags, like the_author, but I get the same type of result. Can anyone lend a hint?
Obviously, we could just manually add the author’s blurb into her every post, but that makes it difficult to change the blurb if her info changes.
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Conditional author include on single.php’ is closed to new replies.