bo3gyx profile

Home Forums bo3gyx

Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • bo3gyx
    Participant

    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.

    in reply to: Please change code

    bo3gyx
    Participant

    I updated theme to 3.2.4 but problem not fixed. https://yadi.sk/i/93kjU5YeWSq_Vw

    in reply to: Please change code

    bo3gyx
    Participant

    Yes, WP_Query don’t return posts array. You need to get posts from the object before counting.

    in reply to: Please change code

    bo3gyx
    Participant

    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) )
    in reply to: Please change code

    bo3gyx
    Participant

    Widget class name is “Widget_Social_counter” in inc/widgets/social-counter/class-widget-social-counter.php

    in reply to: Please change code
Viewing 5 posts - 1 through 5 (of 5 total)