Beispiel #1
0
            $attachments_count++;
            $images_arr[] = 'gallery-image-' . $i;
        }
        $i++;
    }
}
if (get_post_format() == 'video' || get_post_format() == 'audio') {
    if (function_exists('get_embed_code')) {
        get_embed_code($post->ID);
    }
} elseif (get_post_format() == 'status') {
    ?>
				<div class="post-twitter-username icon-twitter-1">
				<?php 
    if (function_exists('get_twitter_link')) {
        get_twitter_link($post_id);
    }
    ?>
				</div>
				<div class="post-inner entry-content <?php 
    echo get_post_type();
    ?>
">
					<div class="blog-excerpt">
					<?php 
    $post_content = '';
    if (empty($excerpt)) {
        _e('No excerpt for this posting.', 'blogpost-lite');
    } else {
        echo wp_kses($excerpt, array('a' => array('href' => array(), 'class' => array())));
    }
Beispiel #2
0
    $img[0] = get_template_directory_uri() . '/images/default-image.jpg';
}
?>

<li class="isotope-item blog-inner-container <?php 
echo get_post_format();
?>
-format">
	<div  <?php 
post_class();
?>
>
		<div class="post-twitter-username icon-twitter-1">
		<?php 
if (function_exists('get_twitter_link')) {
    get_twitter_link($post->ID);
}
?>
		</div>
		<div class="post-inner entry-content <?php 
echo get_post_type();
?>
">
			<div class="blog-excerpt">
			<?php 
$post_content = '';
if (empty($excerpt)) {
    _e('No excerpt for this posting.', 'blogpost-lite');
} else {
    echo wp_kses($excerpt, array('a' => array('href' => array(), 'class' => array())));
}