fortgordonmwr

Forum Replies Created

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • fortgordonmwr
    Participant

    That did it for me! I added the following to my functions.php:

    function modify_events_query( $query ) {
        if (is_page($pageID)) { // Applied only to specific page
            $query->query_vars['tribeHideRecurrence'] = 0;
            return $query;
        }
    }
    add_action( 'tribe_events_pre_get_posts', 'modify_events_query' );

    Thanks for pointing me in the right direction!

    in reply to: Custom Recurring Event Description Needed #1010970
    fortgordonmwr
    Participant

    Thank you for sharing this information. Looking forward to the next release. Thank you,

    -Nathan

    in reply to: Excluding Some Recurring Events From Auto Clean-Up Feature #937519
    fortgordonmwr
    Participant

    Bummer. Thank you for considering this as feature for future releases, I’ll keep my eyes open for it in the future.

    in reply to: Get Category Event to appears only in Widget #936673
    fortgordonmwr
    Participant

    That did it! I had to make one small adjustment though and change the “IN” operator to “NOT IN” so that it was excluded from the calendar. Now it only displays in the sidebar widget, which is exactly what we were looking for! Thanks so much for your help and your patients with me 🙂

    Also, just a side note, I copied the text from your previous post, but had to change all the “smart quotes” to “straight quotes”. I’m pasting my code below so that others who may need this won’t run into the same issue:

    add_action( 'pre_get_posts', 'exclude_events_category' );
    function exclude_events_category( $query ) {

    if ( $query->query_vars['eventDisplay'] == 'upcoming' || $query->query_vars['eventDisplay'] == 'past' || $query->query_vars['eventDisplay'] == 'month' && $query->query_vars['post_type'] == TribeEvents::POSTTYPE && !is_tax(TribeEvents::TAXONOMY) && empty( $query->query_vars['suppress_filters'] ) ) {
    $query->set( 'tax_query', array(
    array(
    'taxonomy' => TribeEvents::TAXONOMY,
    'field' => 'slug',
    'terms' => array('presentations'),
    'operator' => 'NOT IN'
    )
    )
    );
    }

    return $query;

    }

    in reply to: Get Category Event to appears only in Widget #931939
    fortgordonmwr
    Participant

    Where in the templates would I use “pre_get_posts”? Would it be within the loop-grid.php template, or would it be in the single-day.php template?

    in reply to: Get Category Event to appears only in Widget #930551
    fortgordonmwr
    Participant

    Thanks! That helped in removing the events with the “specialsdeals” category from the calendar, but it’s still including them in the overall count per day (the $day[‘daynum’] value). Is there a way to exclude these ‘specialsdeals’ events from this count?

    Sorry for all the questions.

    in reply to: Get Category Event to appears only in Widget #919845
    fortgordonmwr
    Participant

    That’s the problem though, I would want this widget to appear on the sidebar of the event calendar pages. It’s our way of decluttering the calendar by separating our Specials & Deals that last every day for months at a time from the rest of our events.

    Is there no way to fine-tune just the query of events that appear on the calendar? Obviously, I could hide the Specials & Deals events with CSS, but that might mess up the limit of events displayed for each day.

    in reply to: Get Category Event to appears only in Widget #915166
    fortgordonmwr
    Participant

    Thanks for the suggestion with the shortcode. Unfortunately though, it didn’t work 🙁

    Is it possible to add some kind of ‘exclude’ option within the single-day.php code right before it brings in the Event List? That might do it (at least for calendar view).

    Here’s the block of code I’m referring to:

    <?php while ( $day['events']->have_posts() ) : $day['events']->the_post(); ?>
    <?php tribe_get_template_part( 'month/single', 'event' ) ?>
    <?php endwhile; ?>

    in reply to: Parent Category Calendar not displaying Children #909225
    fortgordonmwr
    Participant

    Thanks for your help!

    in reply to: Parent Category Calendar not displaying Children #907933
    fortgordonmwr
    Participant

    Thank you for your quick response!
    Yes, that is what I’m trying to do. I’m not exactly sure where to start though, I’m still not completely familiar with the way this plugin works. So are you saying that the default-template.php file is where the query is made that brings in the list of events? Because it’s not clear to me when viewing this file. I’m familiar with creating conditional arrays in WordPress, but I’m not really sure where it needs to be done. Can you please clarify?

    in reply to: Calendar for All Children Categories #907498
    fortgordonmwr
    Participant

    Hi, I’m running into the same issue described by materdknights on my site. By Barry’s response, it sounds like this issue was addressed, but it doesn’t seem to be working for me. I’m using the latest version of TEC Pro (Version 3.8.1). I’ve spend a great deal of time setting up my categories and would love to take advantage of the same Parent/Child category views that WordPress offers on our calendar. Please let me know if there is a solution yet for this problem.

Viewing 11 posts - 1 through 11 (of 11 total)