Mandarina

Forum Replies Created

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • in reply to: Recurring events are not shown in the calendar #974727
    Mandarina
    Participant

    I 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

    in reply to: Recurring events are not shown in the calendar #974511
    Mandarina
    Participant

    OK, here it is

    http://we.tl/ywkszCynSW

    Please let me know if you have any thoughts, I should had fixed this by yesterday..

    in reply to: Recurring events are not shown in the calendar #974185
    Mandarina
    Participant

    Hi there,

    I made an screenshot

    http://we.tl/v7glgM3nBj

    I hope it helps,

    thanks!!

    Mandarina
    Participant

    Problem 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!

    Mandarina
    Participant

    Sorry,

    That’s what I replaced, not the single event slug..

    $this->getOption( 'eventSlug', 'event' )

    Mandarina
    Participant

    I 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?

    Mandarina
    Participant

    Hi there,

    thanks for your reply,

    Not even hard coding it?

    thanks!

    Mandarina
    Participant

    Yes, that was it! thank you!!

    Mandarina
    Participant

    According to their official documentation, is that

    https://yoast.com/wordpress/plugins/seo/api/

    Do you think it isn’t?

    Thanks again!

    Mandarina
    Participant

    Hi 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?

    Mandarina
    Participant

    Hi,

    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?

    Mandarina
    Participant

    Hi,

    thank your for your answer allthough the problem persists if I update the template…

    Any more thoughts?

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