Viewing 3 replies - 1 through 3 (of 3 total)
  • I did some debugging, and changing get_sticky_query to the following seems to cause it to work properly – how tax_query was changed seems to have changed a little. This will search for posts with the requested category, that also are marked category sticky.

    private function get_sticky_query( $category ) {

    return new WP_Query(
    array(
    ‘fields’ => ‘ids’,
    ‘post_type’ => ‘post’,
    ‘posts_per_page’ => ‘1’,
    ‘tax_query’ => array(
    array(
    ‘taxonomy’ => ‘category’,
    ‘field’ => ‘term_id’, ‘terms’ => array($category->cat_ID),
    ),
    ),
    ‘meta_query’ => array(
    array(
    ‘key’ => ‘category_sticky_post’,
    ‘value’ => $category->cat_ID,
    )
    )
    )
    );

    }

    Thread Starter whateverfree2

    (@whateverfree2)

    Thank you for updated. I will test again and let you known soon

    Plugin Support Mrinal Roy

    (@mkrdip)

    Hi Hai,

    The plugin works fine with WordPress default themes. Unfortunately, we can not provide specific support for another theme that’s causing the issue. Please let us know if it worked after trying @iclysdale solution.

    Cheers.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Does not work anymore’ is closed to new replies.