Správy

‚post_status’=>’publish‘,
‚post__not_in‘ => $excluded_post_id,
‚showposts‘ => ‚6‘,
‚paged‘ => $paged );
$wpb_all_query = new WP_Query($args);

//$wpb_all_query = new WP_Query( array( ‚post_type’=>’post‘, ‚post_status’=>’publish‘, ‚posts_per_page’=>-1 ));
if ( $wpb_all_query->have_posts() ) :
while ( $wpb_all_query->have_posts() ) : $wpb_all_query->the_post();
?>

if (has_post_thumbnail()) {
$image_src = wp_get_attachment_image_src(get_post_thumbnail_id(), ‚full‘);
echo ‚'.$image_src[1].'‚;
}
else { ?>
<?php getLangString('search-no-image'); ?>

 



‚format‘ => ‚?paged=%#%‘,
‚current‘ => max( 1, get_query_var(‚paged‘) ),
‚total‘ => $wpb_all_query->max_num_pages,
‚prev_text‘ => __(‚« Späť‘),
‚next_text‘ => __(‚Ďalej »‘)
) );
?>