Events Calendar PRO: bug when using categories and question to dev team

Home Forums Calendar Products Events Calendar PRO Events Calendar PRO: bug when using categories and question to dev team

Viewing 5 posts - 16 through 20 (of 20 total)
  • Author
    Posts
  • #21857
    Joyce Grace
    Member

    Hi Sandro, I am not getting your messages via e-mail anymore, however I have logged this issue of your posts not showing up as a bug in our system – it is very strange. Jonah will help you from here on, thanks!

    #21874
    Sandro
    Participant

    Hi Joyce, thanks! In that case waiting for Jonah to read the original post I updated for him 🙂

    #21884
    Jonah
    Participant

    Hi Sandro,

    Ok I see what’s going on now. I’ll need to see the code you are using for http://develop.primediart.com/project/Sandroz/gudauri/ but first try this. Using the pre_get_posts() query filter, you should be able to filter the query for the calendar on that page like so:

    add_action( 'pre_get_posts', 'exclude_events_category' );
    function exclude_events_category( $query ) {
    if ( is_page('the-page-with-the-query') ) {
    $query->set( 'tax_query', array(
    array(
    'taxonomy' => TribeEvents::TAXONOMY,
    'field' => 'slug',
    'terms' => array('2012'),
    'operator' => 'IN'
    )
    )
    );
    }
    return $query;
    }

    Put that in your theme’s functions.php file and change the is_page conditional to whatever the page is and then modify the tax_query to only include or exclude the categories you want to display there.

    Does that help?

    – Jonah

    #22069
    Sandro
    Participant

    Hi Jonah. Thanks! Can you please read my original post again? I updated it with my reply. I rewrote explanation of what I’m doing and included code examples. Also included table.php and calendar-frontpage.php files via pastebin.

    #22088
    Jonah
    Participant

    Hi Sandro,

    Unfortunately we cannot help with this level of customization. You’ll need to either figure it out on your own or hire a developer to help you. Good luck!

    – Jonah

Viewing 5 posts - 16 through 20 (of 20 total)
  • The topic ‘Events Calendar PRO: bug when using categories and question to dev team’ is closed to new replies.