diff --git a/functions.php b/functions.php index 1bebb0e..ed9c9db 100644 --- a/functions.php +++ b/functions.php @@ -35,28 +35,13 @@ function sh_latest_posts($atts){ $result = '

'.$atts['label'].' | '.__('see all', 'initfest').'

'; - $news_args = array( 'category_name' => 'news,news-bg', 'numberposts' => 3, 'lang' => of_get_lang() ); + $news_args = array( 'category_name' => 'news,news-bg', 'numberposts' => 6, 'lang' => of_get_lang() ); $news = new WP_Query( $news_args ); ob_start(); - $i=0; if ( $news->have_posts() ) : - while ( $news->have_posts() && $i++<2) : $news->the_post(); -?> -
-

-

|

- - -
-
'; - - $result = '

'.$atts['label'].' | '.__('see all', 'initfest').'

'; - $i=0; - while ( $news->have_posts() && $i++<2) : $news->the_post(); + $i=0; + while ( $news->have_posts() && $i++<6) : $news->the_post(); ?>

@@ -65,6 +50,8 @@ function sh_latest_posts($atts){
'; endwhile; endif;