Any way to use the php call outside the loop?
-
For instance, in my search loop that returns ‘Not Found’ I’d like to call Yuzo to show some random thumbnails. Related posts aren’t necessary in this case.
<?php if (have_posts()) : ?> // normal loop stuff <?php else : ?> <h2>Not Found...</h2> <p>Sorry, no posts matched your criteria. Try a different search?</p> <?php get_yuzo_related_posts(); ?> #shows nothing currently - would like just random thumbnails <?php endif; ?>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Any way to use the php call outside the loop?’ is closed to new replies.