$post_id = get_the_ID();
update_post_meta($post_id, 'custom_post_id', $post_id);
function testajf(blockposts) {
var blockcount = blockposts.length;
var i = 1;
while ( i < blockcount ) {
var $elems = getItemElement(blockposts[i]);
$container.append( $elems )
.isotope( 'appended', $elems );
i++;
}
return false;
}
wp_reset_query();
wp_reset_postdata();