Example #1
0
<?php

/**
 * @package untitled
 */
$featured = untitled_get_featured_posts();
if (empty($featured)) {
    return;
}
?>

<div id="featured-content" class="flexslider">
	<ul class="featured-posts slides">

		<?php 
foreach ($featured as $post) {
    setup_postdata($post);
    if ('' != get_the_post_thumbnail($post->ID)) {
        ?>
			<li class="featured">
				<a href="<?php 
        the_permalink();
        ?>
" rel="bookmark"><?php 
        the_post_thumbnail('slider-img');
        ?>
</a>
				<div class="featured-hentry-wrap">
					<div id="post-<?php 
        the_ID();
        ?>
Example #2
0
/**
 * Featured Posts
 *
 * @since untitled 1.0
 */
function untitled_has_multiple_featured_posts()
{
    $featured_posts = untitled_get_featured_posts();
    return is_array($featured_posts) && 1 < count($featured_posts);
}