Forum Replies Created
-
AuthorPosts
-
Logan
ParticipantThanks 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
Logan
ParticipantWell, I installed it and it threw a fatal error…
Logan
ParticipantThanks 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 ) . ‘”/>’;
}
}Logan
ParticipantExcellent, this looks like the right direction! Thanks so much! Where do I add these files?
Logan
ParticipantAnyone 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.
Logan
ParticipantThanks 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’ );Logan
ParticipantAnyone??
-
AuthorPosts
