Forum Replies Created
-
AuthorPosts
-
Mandarina
ParticipantI cant believe it,
I tried in local envirnment to disable WPML, and then the recurring events where shown! And I even reactivated again and they didn’t dissapear…
So did the same in production server, now they are showing.. but Do you think I have to repeat the process for new (recurring) events?
Best regards,
thanks a lot
Mandarina
ParticipantOK, here it is
Please let me know if you have any thoughts, I should had fixed this by yesterday..
Mandarina
ParticipantJune 15, 2015 at 12:19 am in reply to: It generates wrong urls, like website.com//partys/[date here] #969370Mandarina
ParticipantProblem persists… I kind of fix it with 301 redirects,
but disabling all other plugins is not a choice..
If you have any ideas, happy to try them!
June 12, 2015 at 12:13 am in reply to: How to define a different slug per language: eventos, events, esdeveniments #968954Mandarina
ParticipantSorry,
That’s what I replaced, not the single event slug..
$this->getOption( 'eventSlug', 'event' )June 12, 2015 at 12:12 am in reply to: How to define a different slug per language: eventos, events, esdeveniments #968952Mandarina
ParticipantI Did a test,
Defined this function:
function get_event_slug() { $paginas = array( 'es' => 8, 'en' => 988, 'de' => 989 ); $full_slug = get_permalink( $paginas[ICL_LANGUAGE_CODE] ); $parts = explode('/', $full_slug); return $parts[ count($parts) - 2]; }Replacing all occurences of
$this->getOption( 'singleEventSlug', 'event' )For this
get_event_slug()But It didn’t work.. in fact, in the help sections of Events settings, it still shows up the events page setted in the admin…
Any idea what I’m missing?
June 11, 2015 at 3:06 am in reply to: How to define a different slug per language: eventos, events, esdeveniments #968721Mandarina
ParticipantHi there,
thanks for your reply,
Not even hard coding it?
thanks!
June 11, 2015 at 1:11 am in reply to: Title and description, not the ones setted with YOAST SEO #968711Mandarina
ParticipantYes, that was it! thank you!!
June 10, 2015 at 9:08 am in reply to: Title and description, not the ones setted with YOAST SEO #968484Mandarina
ParticipantAccording to their official documentation, is that
https://yoast.com/wordpress/plugins/seo/api/
Do you think it isn’t?
Thanks again!
June 10, 2015 at 6:53 am in reply to: Title and description, not the ones setted with YOAST SEO #968409Mandarina
ParticipantHi brian,
Thanks for your answer,
As I said, the title code works for me, yes!
the problem is with the second one, I believe there’s something wrong, because the <meta name=”description”> is not in the html…
Any thoughts?
June 10, 2015 at 2:17 am in reply to: Title and description, not the ones setted with YOAST SEO #968368Mandarina
ParticipantHi,
I get it working for the title, like this
add_filter(‘wpseo_title’,’ql_seo_custom_titles’, 10, 1 );
function ql_seo_custom_titles( $title ) {
$tribe_ecp = TribeEvents::instance();
$opt = get_wpseo_options(); // get wpseo_options ##
$ql_title_sep = ( isset( $opt[‘breadcrumbs-sep’] ) && $opt[‘breadcrumbs-sep’] != ” ) ? $opt[‘breadcrumbs-sep’] : ‘ • ‘;
$paginas = array(
‘es’ => 898,
‘en’ => 1008,
‘de’ => 1009
);
if ( is_event() ) { // re-filter titles ##if( tribe_is_month() && !is_tax() ) { // The Main Calendar Page
$pagina_id = $paginas[ICL_LANGUAGE_CODE];
$event_title = get_post_meta( $pagina_id , ‘_yoast_wpseo_title’, true);
} elseif( tribe_is_month() && is_tax() ) { // Category Calendar Pages
$cat = get_term_by( ‘slug’, get_query_var(‘term’), $tribe_ecp->get_event_taxonomy() );
$event_title = ”.$cat.’ Calendar’;
} elseif( tribe_is_event() && is_tax() ) { // Calendar Category Pages
if ( is_tax( $tribe_ecp->get_event_taxonomy() ) ) {
$event_title = ”.ql_get_events_cat();
} else { // tax list – return wpseo title as is – for custom taxonomy “tribe_events_tag” added to tribe_event cpt ##
$event_title = ”.$title;
}
} elseif( tribe_is_event() && is_single() ) { // Single Events – so get post title ##
$event_title = ”.get_the_title();
} elseif( tribe_is_day() ) { // Single Event Days
$event_title = ‘Upcoming Events’;
#} elseif( tribe_is_venue() ) { // Single Venues
#} elseif ( tribe_is_past() ) { // past event ##
} else {
//$event_title = ‘Events’;
$pagina_id = $paginas[ICL_LANGUAGE_CODE];
$event_title = get_post_meta( get_the_ID() , ‘_yoast_wpseo_title’, true);
}// add site title to the end ##
$title = $event_title.’ ‘.$ql_title_sep.’ ‘.get_bloginfo( ‘name’ );} else { // not events, so don’t change SEO title ##
$title = ”.$title;
}return $title;
}
add_filter(‘wpseo_wpseo_metadesc’,’ql_seo_custom_wpseo_metadesc’, 10, 1 );but I tried to Do the same for the description, like this: but it’s not ouputing the tag…
add_filter(‘wpseo_wpseo_metadesc’,’ql_seo_custom_wpseo_metadesc’, 10, 1 );
function ql_seo_custom_description ( $wpseo_metadesc ) {
$tribe_ecp = TribeEvents::instance();
$opt = get_wpseo_options(); // get wpseo_options ##
$ql_title_sep = ( isset( $opt[‘breadcrumbs-sep’] ) && $opt[‘breadcrumbs-sep’] != ” ) ? $opt[‘breadcrumbs-sep’] : ‘ • ‘;
$paginas = array(
‘es’ => 898,
‘en’ => 1008,
‘de’ => 1009
);
if ( is_event() ) { // re-filter titles ##if( tribe_is_month() && !is_tax() ) { // The Main Calendar Page
$pagina_id = $paginas[ICL_LANGUAGE_CODE];
$event_title = get_post_meta( $pagina_id , ‘_yoast_wpseo_metadesc’, true);
} elseif( tribe_is_month() && is_tax() ) { // Category Calendar Pages
$cat = get_term_by( ‘slug’, get_query_var(‘term’), $tribe_ecp->get_event_taxonomy() );
$event_title = ”.$cat.’ Calendar’;
} elseif( tribe_is_event() && is_tax() ) { // Calendar Category Pages
if ( is_tax( $tribe_ecp->get_event_taxonomy() ) ) {
$event_title = ”.ql_get_events_cat();
} else { // tax list – return wpseo title as is – for custom taxonomy “tribe_events_tag” added to tribe_event cpt ##
$event_title = ”.$wpseo_metadesc;
}
} elseif( tribe_is_event() && is_single() ) { // Single Events – so get post title ##
$event_title = ”.get_the_title();
} elseif( tribe_is_day() ) { // Single Event Days
$event_title = ‘Upcoming Events’;
#} elseif( tribe_is_venue() ) { // Single Venues
#} elseif ( tribe_is_past() ) { // past event ##
} else {
//$event_title = ‘Events’;
$pagina_id = $paginas[ICL_LANGUAGE_CODE];
$event_title = get_post_meta( get_the_ID() , ‘_yoast_wpseo_metadesc’, true);
}// add site title to the end ##
$title = $event_title.’ ‘.$ql_title_sep.’ ‘.get_bloginfo( ‘name’ );} else { // not events, so don’t change SEO title ##
$title = ”.$wpseo_metadesc;
}return $title;
}Any thoughts?
June 10, 2015 at 12:51 am in reply to: Title and description, not the ones setted with YOAST SEO #968362Mandarina
ParticipantHi,
thank your for your answer allthough the problem persists if I update the template…
Any more thoughts?
-
AuthorPosts
