wdgdc

Forum Replies Created

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • in reply to: RSS and iCal Feeds #24434
    wdgdc
    Participant

    Everything’s good now. CCTM might be the death of me.

    in reply to: RSS and iCal Feeds #24428
    wdgdc
    Participant
    in reply to: RSS and iCal Feeds #24422
    wdgdc
    Participant

    Change that. It’s request_filter() that’s fucking everything up. Same plugin. This is their bug…
    “This is a troublesome little query… we need to monkey with it so WP will play nice with custom post types, but if you breathe on it wrong, chaos ensues.” — CCTM devs

    in reply to: RSS and iCal Feeds #24419
    wdgdc
    Participant

    You’re right. It was a conflict.
    http://wordpress.org/extend/plugins/custom-content-type-manager/

    Their function search_filter() in /includes/CCTM.php includes a line (2394): $query->set(‘post_type’, $post_types); that kills the post_type query on feeds.

    in reply to: RSS and iCal Feeds #24413
    wdgdc
    Participant

    On it.

    in reply to: RSS and iCal Feeds #24408
    wdgdc
    Participant

    Hey Barry,
    I can’t share the url, unfortunately.

    The summary is accurate except that I’m working with the original blog on the multisite, so everything is running from /events instead of /[subsite]/events.

    I’ve been combing through filters and actions to see if anything is changing the wp_query to just retrieve posts, but I haven’t seen anything yet that would be overwriting that change.

    in reply to: RSS and iCal Feeds #24403
    wdgdc
    Participant

    So then it seems like the last step is to check and see if eventDisplay is set and run the filters if that’s true.
    Adding “|| (isset($query->query_vars[‘eventDisplay’]) && $query->query_vars[‘eventDisplay’] != ”)” to the condition in setupQuery seems to handle this.

    in reply to: RSS and iCal Feeds #24400
    wdgdc
    Participant

    Scratch the above. The rewrite runs exist. It looks like /events/feed is problematic because WordPress has a rule after that that looks for [[^/]+/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$]

    The issue seems to be that the post type is never changed from post to tribe_events (the-events-calendar/lib/tribe-event-query.class.php -> setupQuery() ).

    Adding the following lines to setupQueryArgs seems to fix this issue for category feeds:
    if($args[‘post_type’] != TribeEvents::POSTTYPE) {
    $query->query_vars[‘post_type’] = TribeEvents::POSTTYPE;
    }

    …so that just leaves the full events feed.

    in reply to: RSS and iCal Feeds #24391
    wdgdc
    Participant

    Another update.

    Some of the rewrite rules are missing from the wp rewrite object.
    The following are there, but the rest are missing.
    [event/[^/]+/attachment/([^/]+)/?$] => index.php?attachment=$matches[1]
    [event/[^/]+/attachment/([^/]+)/trackback/?$] => index.php?attachment=$matches[1]&tb=1
    [event/[^/]+/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
    [event/[^/]+/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
    [event/[^/]+/attachment/([^/]+)/comment-page-([0-9]{1,})/?$] => index.php?attachment=$matches[1]&cpage=$matches[2]
    [event/([^/]+)/trackback/?$] => index.php?tribe_events=$matches[1]&tb=1
    [event/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?tribe_events=$matches[1]&feed=$matches[2]
    [event/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?tribe_events=$matches[1]&feed=$matches[2]
    [event/([^/]+)/page/?([0-9]{1,})/?$] => index.php?tribe_events=$matches[1]&paged=$matches[2]
    [event/([^/]+)/comment-page-([0-9]{1,})/?$] => index.php?tribe_events=$matches[1]&cpage=$matches[2]
    [event/([^/]+)(/[0-9]+)?/?$] => index.php?tribe_events=$matches[1]&page=$matches[2]
    [event/[^/]+/([^/]+)/?$] => index.php?attachment=$matches[1]
    [event/[^/]+/([^/]+)/trackback/?$] => index.php?attachment=$matches[1]&tb=1
    [event/[^/]+/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
    [event/[^/]+/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
    [event/[^/]+/([^/]+)/comment-page-([0-9]{1,})/?$] => index.php?attachment=$matches[1]&cpage=$matches[2]
    [venue/[^/]+/attachment/([^/]+)/?$] => index.php?attachment=$matches[1]
    [venue/[^/]+/attachment/([^/]+)/trackback/?$] => index.php?attachment=$matches[1]&tb=1
    [venue/[^/]+/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
    [venue/[^/]+/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
    [venue/[^/]+/attachment/([^/]+)/comment-page-([0-9]{1,})/?$] => index.php?attachment=$matches[1]&cpage=$matches[2]
    [venue/([^/]+)/trackback/?$] => index.php?tribe_venue=$matches[1]&tb=1
    [venue/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?tribe_venue=$matches[1]&feed=$matches[2]
    [venue/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?tribe_venue=$matches[1]&feed=$matches[2]
    [venue/([^/]+)/page/?([0-9]{1,})/?$] => index.php?tribe_venue=$matches[1]&paged=$matches[2]
    [venue/([^/]+)/comment-page-([0-9]{1,})/?$] => index.php?tribe_venue=$matches[1]&cpage=$matches[2]
    [venue/([^/]+)(/[0-9]+)?/?$] => index.php?tribe_venue=$matches[1]&page=$matches[2]
    [venue/[^/]+/([^/]+)/?$] => index.php?attachment=$matches[1]
    [venue/[^/]+/([^/]+)/trackback/?$] => index.php?attachment=$matches[1]&tb=1
    [venue/[^/]+/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
    [venue/[^/]+/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
    [venue/[^/]+/([^/]+)/comment-page-([0-9]{1,})/?$] => index.php?attachment=$matches[1]&cpage=$matches[2]
    [events/category/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?tribe_events_cat=$matches[1]&feed=$matches[2]
    [events/category/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?tribe_events_cat=$matches[1]&feed=$matches[2]
    [events/category/([^/]+)/page/?([0-9]{1,})/?$] => index.php?tribe_events_cat=$matches[1]&paged=$matches[2]
    [events/category/([^/]+)/?$] => index.php?tribe_events_cat=$matches[1]

    in reply to: RSS and iCal Feeds #24364
    wdgdc
    Participant

    Still tracing the issue. It seems like the post type modifications aren’t making it to the feed, but eventDisplay is there.

    WP_Query Object ( [query_vars] => Array ( [feed] => feed [post_type] => Array ( [post] => post ) [eventDisplay] => upcoming [error] => [m] => 0 [p] => 0 [post_parent] => [subpost] => [subpost_id] => [attachment] => [attachment_id] => 0 [name] => [static] => [pagename] => [page_id] => 0 [second] => [minute] => [hour] => [day] => 0 [monthnum] => 0 [year] => 0 [w] => 0 [category_name] => [tag] => [cat] => [tag_id] => [author_name] => [tb] => [paged] => 0 [comments_popup] => [meta_key] => [meta_value] => [preview] => [s] => [sentence] => [fields] => [category__in] => Array ( ) [category__not_in] => Array ( ) [category__and] => Array ( ) [post__in] => Array ( ) [post__not_in] => Array ( ) [tag__in] => Array ( ) [tag__not_in] => Array ( ) [tag__and] => Array ( ) [tag_slug__in] => Array ( ) [tag_slug__and] => Array ( ) [blogid] => [ignore_sticky_posts] => [suppress_filters] => [cache_results] => 1 [update_post_term_cache] => 1 [update_post_meta_cache] => 1 [posts_per_page] => 10 [nopaging] => [comments_per_page] => 50 [no_found_rows] => [order] => DESC ) [tax_query] => WP_Tax_Query Object ( [queries] => Array ( ) [relation] => AND ) [meta_query] => WP_Meta_Query Object ( [queries] => Array ( ) [relation] => ) [post_count] => 10 [current_post] => 0 [in_the_loop] => 1 [comment_count] => 0 [current_comment] => -1 [found_posts] => 41 [max_num_pages] => 5 [max_num_comment_pages] => 0 [is_single] => [is_preview] => [is_page] => [is_archive] => [is_date] => [is_year] => [is_month] => [is_day] => [is_time] => [is_author] => [is_category] => [is_tag] => [is_tax] => [is_search] => [is_feed] => 1 [is_comment_feed] => [is_trackback] => [is_home] => [is_404] => [is_comments_popup] => [is_paged] => [is_admin] => [is_attachment] => [is_singular] => [is_robots] => [is_posts_page] => [is_post_type_archive] => [query_vars_hash] => 66a90307febc6d6192cce3d309ce9f71 [query_vars_changed] => 1 [thumbnails_cached] => [query] => Array ( [feed] => feed [post_type] => Array ( [post] => post ) [eventDisplay] => upcoming )

    in reply to: Pro version of Advanced List Widget #23819
    wdgdc
    Participant

    Hi Joyce,
    Thanks for getting back to me. I posted this in haste, so I wasn’t able to explain myself.
    The tutorial you mentioned gives the following code:
    remove_action( ‘widgets_init’, ‘events_calendar_load_featured_widget’,100);

    That code is also being used to upgrade the regular widgets in the events calendar to the pro versions in events calendar pro. That means I can’t actually customize the widget because the weight of actions only goes to 100.

    Let me know if this makes sense.

    in reply to: Using the calendar on a college site #22907
    wdgdc
    Participant

    You can allow blogid to be defined in the query string with the following code:

    // Allow blogid to be set in query
    function blogid_query_set_blog_id( $query ) {
    global $blog_id;

    if ( isset($query->query_vars[‘blogid’]) && $query->query_vars[‘blogid’] != $blog_id ){
    switch_to_blog( $query->query_vars[‘blogid’] );
    } else {
    $query->query_vars[‘blogid’] = NULL;
    }
    }
    add_action( ‘pre_get_posts’, ‘blogid_query_set_blog_id’ );
    add_action( ‘loop_start’, ‘blogid_query_set_blog_id’ );

    function blogid_query_restore_blog_id( $query ) {
    if ( isset($query->query_vars[‘blogid’]) ) {
    restore_current_blog();
    }
    }
    add_action( ‘loop_end’, ‘blogid_query_restore_blog_id’ );

    function blogid_query_posts_results( $posts, $query ) {
    if ( isset($query->query_vars[‘blogid’]) ) {
    restore_current_blog();
    }
    return $posts;
    }
    add_filter( ‘posts_results’, ‘blogid_query_posts_results’, 10, 2 );

    From there you just have to customize the widgets to specify which site’s calendar you would like to use.

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