<?php
if ( ! empty ( get_post_meta( $post->ID, 'wpcf-dowloads', true ) ) ) {
echo get_post_meta( $post->ID, 'wpcf-dowloads', true );
}
?>
<?php if ( ! empty ( get_post_meta( $post->ID, 'wpcf-dowloads', true ) ) ) : ?>
<div>
...
<?php echo get_post_meta( $post->ID, 'wpcf-dowloads', true ); ?>
...
</div>
<?php endif; ?>
<?php
$next_post = get_next_post();
if( ! empty($next_post) ){
?>
<a href="<?php echo get_permalink( $next_post->ID ); ?>">
<?php echo get_the_post_thumbnail($next_post->ID); ?>
</a>
<?php
}
?>
<?php
$args = array(
'post_type' => 'blog',
'posts_per_page' => 3,
'orderby' => 'rand',
'tax_query' => array(
array(
'taxonomy' => 'blogs',
'field' => 'slug', // slug or term_id
'terms' => 'bob', // string/int or array of strings/ints (see below)
// 'field' => 'term_id',
// 'terms' => array( 12, 15, 21 ),
),
),
);
$blog = new WP_Query( $args );
?>
<?php while ( $blog->have_posts() ) : $blog->the_post(); ?>
<h1 class="entry-title"><?php the_title(); ?></h1>
<div class="entry-content">
<?php the_content(); ?>
</div>
<?php endwhile; ?>
<?php wp_reset_postdata(); ?>
var co1 = 1398;
var co2 = 193;
var co3 = 16;
var co4 = 10;
var co5 = 3;
var co10 = Math.ceil(1398/1.5);
var co20 = Math.ceil(193/2);
var co30 = Math.ceil(16/2);
var co40 = Math.ceil(10/5);
var co50 = Math.ceil(3/5);
$.fn.extend({
animCount: function(start, limit, time, text) {
if (start <= limit) {
var $el = $(this);
$el.html(start + text);
setTimeout(function () {
$el.animCount(++start, limit, time, text);
}, time);
}
}
});
$("#counter1").animCount(co10, co1, 1, '');
<a href="https://yandex.ru/maps/2/saint-petersburg/?text=%D1%8F%D0%BD%D0%B4%D0%B5%D0%BA%D1%81&sll=30.406037%2C59.959137&sspn=0.008057%2C0.002122&ll=30.406119%2C59.959064&z=18&sctx=CAAAAAQAWdqpudxQPkAna9RDNPhNQCYYzjXM0OA%2FP%2BPCgZAs1j8FAAAAAAECAwUFAAAAAAAAAAE2bvXxKn5M%2FQIAAAABAACAv%2F%2F%2F%2F%2F8CAAAACQAAAHNodWZhZHY9MQgAAABtYXhhZHY9NQ%3D%3D&ol=biz&oid=1126541877">Санкт-Петербург, Пискаревский просп., 2, корп.2щ, БЦ Бенуа</a>
botton
, так что куда вы его ни засуньте - валидатор будет ругаться.<button type="button">