Пример #1
0
	</a>
			<?php 
get_template_part('partials/meta', get_post_type());
?>

		</header>


	<div class="post__content post__content--summary">

		<div class="wysiwyg js-wysiwyg l-content">
			<?php 
// Display full post for link posts
if (!get_field('post_link')) {
    d7_custom_excerpt(70, false);
} else {
    the_content();
}
?>
		</div>

		<?php 
// Tags
$tags = wp_get_post_tags($post->ID);
if ($tags) {
    the_tags('<ul class="post-tags"><li class="post-tags__tag-wrapper">', '</li><li class="post-tags__tag-wrapper">', '</li></ul>');
}
?>

	</div><!-- .entry-content -->
Пример #2
0
	<header>

		<h2 class="post__title"><a href="<?php 
the_permalink();
?>
" title="<?php 
printf(esc_attr__('Permalink to %s', get_bloginfo('name')), the_title_attribute('echo=0'));
?>
" rel="bookmark"><?php 
the_title();
?>
</a></h2>

		<?php 
get_template_part('partials/meta', get_post_type());
?>

	</header>

	<div class="post__content post__content--summary wysiwyg">
		<?php 
d7_custom_excerpt(45, "More Info");
?>
	</div><!-- .entry-content -->

	<?php 
edit_post_link('Edit');
?>

</article><!-- #post-## -->
}
?>

					<?php 
$url = get_field('dev_url');
?>
					<li class="link-tile__meta__item link-tile__meta__item--link"><?php 
echo str_replace("www", "", str_replace("http://", "", $url));
?>
</li>

				</ul>

			<div class="link-tile__description">
				<?php 
d7_custom_excerpt('40', false);
?>
			</div>

			<span class="link-tile__flag" aria-hidden="true" ><?php 
nsh_dev_project_category();
?>
</span>
		</div>

		<?php 
$image = d7_get_acf_image('dev_screenshot', 'medium-square');
if ($image) {
    ?>
		<div class="link-tile__image">
			<?php