WordPress.org

Forums

Useful Banner Manager
small change for make plugin more user friendly (1 post)

  1. Yuri
    Member
    Posted 7 months ago #

    in useful-banner-manager.php change this line:
    $banners_ids_where = "id IN (" . implode( ',', $banners_ids ) . ") AND ";
    to
    $banners_ids_where = "(id IN ('" . implode( '\',\'', $banners_ids ) . "') OR banner_title IN ('". implode( '\',\'', $banners_ids ) . "')) AND ";

    this change allow select banners by title for call they as:
    useful_banner_manager_banners( 'topBanner', 1 );

Reply

You must log in to post.

About this Plugin

About this Topic

Tags