WordPress.org

Ready to get started?Download WordPress

Forums

All-in-One Event Calendar
[resolved] Filter by category AND tag (2 posts)

  1. decomush
    Member
    Posted 8 months ago #

    I can't get the filters to work correctly.
    I want to filter all the November 2013 events that contains the tag 198 AND category 197.

    I'm having 3 different results and none of them are what I want:
    1) ?ai1ec=action~month|cat_ids~197,tag_ids~198|exact_date~1383282000
    Has Category and Tag => Shows
    Has only Tag => Doesn't show
    Has only Category => Shows

    2) ?ai1ec=action~month|tag_ids~198,cat_ids~197|exact_date~1383282000
    Has Category and Tag => Shows
    Has only Tag => Shows
    Has only Category => Doesn't show

    3) ?ai1ec=action~month|tag_ids~198|cat_ids~197|exact_date~1383282000
    Has Category and Tag => Shows
    Has only Tag => Shows
    Has only Category => Shows

    I'm looking for:
    Has Category and Tag => Shows
    Has only Tag => Doesn't show
    Has only Category => Doesn't show

    http://wordpress.org/plugins/all-in-one-event-calendar/

  2. decomush
    Member
    Posted 8 months ago #

    Well, if anyone is intereseted the only solution I found was to change _get_filter_sql on ss-ai1ec-dar-helper.php.

    Chnaged "$where_logic = ' OR ';" to "$where_logic = ' AND ';" on both cases. Not the best solution but the only one I found.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags