Two search result versions
-
I would like to have two different search results depending on the page. that the user is on.
I have duplicated how the previous search contents would display in the article, added the extra code I want the staff search to show, and then put an if statement around it.
If user is on page ‘staff’ – then show this
Else show this.I cant seem to get it to work, any help would be appreciated.
<?php if (is_page('staff')) { ?> <article class="entry post clearfix"> <-- Title / Thumbnail / Price / Description coding --> </article> <?php } else { ?> <article class="entry post clearfix"> <-- Title / Thumbnail / Description coding --> </article> <?php } endif; ?>
- The topic ‘Two search result versions’ is closed to new replies.