Code: Select all
<?php
function has_tag($tag, $post) {
$tagList = $post->tags(true);
return in_array($tag, $tagList);
}
?>
Code: Select all
<?php
function have_posts() {
global $posts;
return !empty($posts);
}
?>
Code: Select all
<?php
function have_pages() {
global $pages;
return !empty($pages);
}
?>