• Hello,
    First, sorry for my English.

    This plugin cause a bug with all widgets who list the last blog of the category sorted by oldest.

    here : function poc_category_order( $query )
    We have :
    if ( $post_order == 'oldest' && $query->is_category($cat_id) && $query->is_main_query() )
    This conditionnal test ” && $query->is_category($cat_id)” is useless and cause the bug.
    I change it to :
    if ( $post_order == 'oldest' && $query->is_main_query() )

    And all is working.

Viewing 1 replies (of 1 total)
  • Plugin Author Atanas Yonkov

    (@nravota12)

    Hi @guiver01 ,
    I think there should be a reason I added this extra check $query->is_category($cat_id) but I do not remember on prima vista. I will test and let you know. What widget causes a problem?

Viewing 1 replies (of 1 total)
  • The topic ‘bug and solution’ is closed to new replies.