• Resolved rameshmahala

    (@rameshmahala)


    Hi,

    I am facing an issue where the custom sidebars won’t display on a custom taxonomy archive page if that taxonomy doesn’t have a post assigned.

    I also tried to debug the issue in the plugin code and found that in this class – \classes\modules\target-rule\class-bsf-sb-target-rules-fields.php there is a function “get_posts_by_conditions” which is responsible for finding matching sidebars. In this function there is line of code which is responsible for getting the current post type –
    $current_post_type = esc_sql( get_post_type() );
    This line of code won’t work if the current archive is empty.

    Thanks for your help.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.