The problem doesn’t resolved.
$posts = new WP_Query( array( 'post_type' => 'post', 'posts_per_page' => $limit, $cat_query => $cat_id ) ); if( is_array( $posts ) && count( $posts ) > 0 ) : $i = 0;
wp_query is not an array. It is an object. Please fix it.
I already wrote my decision above.
I also found another problem.
Slider does not work correctly for rtl locale.
I updated theme to 3.2.4 but problem not fixed. https://yadi.sk/i/93kjU5YeWSq_Vw
Yes, WP_Query don’t return posts array. You need to get posts from the object before counting.
Hello! I find bug, in shortcode “vcg_blog_posts_categories”.
This is in file gillion/inc/elements/blog-posts-categories.php at line 494
$posts = new WP_Query( array( 'post_type' => 'post', 'posts_per_page' => $limit, $cat_query => $cat_id ) ); if( count($posts) > 0 ) : $i = 0;
change it, for example:
if( count($posts->posts) > 0) )
Widget class name is “Widget_Social_counter” in inc/widgets/social-counter/class-widget-social-counter.php