Logan

Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • in reply to: Events Archive Title and OG:Image #1272965
    Logan
    Participant

    Thanks Trisha. Here is the error:

    Fatal error: Call to undefined function tribe_is_map() in /home/pedaling/bikepacking.com/wordpress/wp-content/plugins/tribe-ext-add-meta-description-to-events/tribe-ext-add-meta-description-to-events.php on line 52

    in reply to: Events Archive Title and OG:Image #1272714
    Logan
    Participant

    Well, I installed it and it threw a fatal error…

    in reply to: Events Archive Title and OG:Image #1272690
    Logan
    Participant

    Thanks for this Trisha. However, I am still stuck. I am really surprised this isn’t a more discussed issue. WHat I need is a separate META Title tag and META description tag for the main upcoming Events Page and the Month View page. This should also not affect category views. Does this make sense? You have this in the code, which I think would make it so the same Title and Description are applied to all pages… unfortunately, this will affect SEO negatively, I need uniques titles/descriptions for the two pages (month/main):

    if( tribe_is_month() || tribe_is_upcoming() || tribe_is_past() || tribe_is_day() || tribe_is_map() || tribe_is_photo() || tribe_is_week() ) {
    $seo_description = tribe_get_option( ‘seo-meta-description’ );
    if ( ! empty( $seo_description ) ) {
    echo ‘<meta name=”description” content=”‘ . esc_attr( $seo_description ) . ‘”/>’;
    }
    }

    in reply to: Events Archive Title and OG:Image #1271541
    Logan
    Participant

    Excellent, this looks like the right direction! Thanks so much! Where do I add these files?

    in reply to: Events Archive Title and OG:Image #1271431
    Logan
    Participant

    Anyone have any suggestions? This is terribly frustrating as we are rolling out our events calendar tomorrow, but I can’t figure out how to change the Page Title (to something specific), the OG share image, or the meta description, per event category…. or on the main ‘Events Archive’. Please help.

    in reply to: Next Event URL, Date, Title, and thumbnail #1270897
    Logan
    Participant

    Thanks so much!! I ended up figuring it out with this (below), but your way is probably much better…

    function tribe_add_thumbnail_to_single_next( $link ) {
    global $post;
    $next = Tribe__Events__Main::instance()->get_closest_event( $post, ‘ next’ );
    if ( ! is_a( $next, ‘WP_Post’ ) || ! isset( $next->ID ) ) {
    return $link;
    }
    return tribe_get_next_event_link(‘ID, thumbnail, false, false ) . ‘” />

    Next Event:

    ‘ . get_the_title( $next->ID ) . ‘

    ‘);// . $link;
    }
    add_filter( ‘tribe_the_next_event_link’, ‘tribe_add_thumbnail_to_single_next’ );

    in reply to: Next Event URL, Date, Title, and thumbnail #1269341
    Logan
    Participant

    Anyone??

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