How would I go about doing an if statement for
<? related_posts() ?>
This way if YARPP is deactivated it won't break my page...
How would I go about doing an if statement for
<? related_posts() ?>
This way if YARPP is deactivated it won't break my page...
Check using if (function_exists('related_posts')).
Thanks mitco, just what I needed! The full code I used for anybody else looking for this:
<? if (function_exists('related_posts')) {
related_posts();
} else {
echo "No related posts";
} ?>Great!
This topic has been closed to new replies.