From b03d586fd0e2a2e17ed24c70a53837cacf3b4acf Mon Sep 17 00:00:00 2001 From: Vasil Kolev Date: Sat, 18 Oct 2014 16:57:10 +0300 Subject: [PATCH] fix crappy copy-paste --- functions.php | 23 +++++------------------ 1 file changed, 5 insertions(+), 18 deletions(-) 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;