WP Bannerize
[resolved] Possible Bug With Filter (5 posts)

  1. SchattenMann
    Posted 4 years ago #

    i've been reading the WP-B code for the past hour trying to figure out why a banner widget wasn't displayed with no Category Filter or in theIndex page

    i've found the *bug* in wpBannerizeFrontend.php line 88

    (is_array( $categoriesID) && !is_category($categoriesID) && !in_category($categoriesID))

    should be replace, in my opinion for:

    (is_array( $categoriesID) && count( $categoriesID) > 0 && !is_category($categoriesID) && !in_category($categoriesID))

    with is_array( $categoriesID) we are checking if $categoriesID is an array but i've never checked if the array has childs...$categoriesID will always be an array due to $args = wp_parse_args($theArgs, $default); but if we don't select categories will be an empty array so this will always return true therefor widget is not display unless categorys are selected...

    i would like to hear from the developers what they think...maybe i'm the one who missunderstood the concept here.


  2. gfazioli
    Plugin Author

    Posted 4 years ago #

    @ SchattenMann,
    Ops Yes, you are right!

    I'm going to fix it immediately

    Thank you very much for report


  3. SchattenMann
    Posted 4 years ago #

    glad i could help mate :)

    pi know this is not the correct place but there's something i would love to see implemented: hierarchical groups like WP Categories

    that would allow me to have the same Banner in different Groups and Call multiple Groups at once with WPB Widget...that would be sooooo sweet!

  4. gfazioli
    Plugin Author

    Posted 4 years ago #

    Thank you again,
    I would like share a little secret (or a preview) with you.
    The next major release of WP Bannerize will allow custom post type with "banner type" hierarchical tree and tag. A banner will be like a post!

    So, stay tuned

    Thanks for all support and suggestions

  5. SchattenMann
    Posted 4 years ago #

    that seems awesome.

    that's exactly what i thought WPB should evolved ...congrats!

    when can we expect that?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Bannerize
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic