“;
echo”
“;
$paged = ( get_query_var( ‘paged’ ) ) ? get_query_var( ‘paged’ ) : 1;
$the_query = new WP_Query( array(
‘post_type’ => ‘post’,
‘orderby’ => ‘date’,
‘category_name’ => ‘weddinginfo’,
‘order’ => ‘DESC’,
‘posts_per_page’ => 12,
‘paged’ => $paged));
if ( $the_query->have_posts() ) :
while ( $the_query->have_posts() ) :
$the_query->the_post();
if(”=== apply_filters(‘the_content’, get_post_field(‘post_content’, get_the_ID()))){
$href= get_the_post_thumbnail_url();
echo ‘
‘ .
‘
‘.do_shortcode( ‘
‘ )
.’
‘;}else{$href = apply_filters(‘the_content’, get_post_field(‘post_content’, get_the_ID()));
echo ‘
‘ .
‘
‘.do_shortcode( ‘
‘ )
.’
‘;}
endwhile;
echo’
‘;
echo’
‘;
if (function_exists(custom_pagination)) {
custom_pagination($the_query ->max_num_pages,””,$paged);
}
echo’
‘;
wp_reset_postdata();
else:
echo ‘No result’;
endif;
echo”