Related Events

Home Forums Calendar Products Events Calendar PRO Related Events

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1203786
    Sascha
    Participant

    Hi,

    I am coming up with a request which has already been there in the past (2013/2015), but the solution does not work (at least for me):
    pasting this code in theme/functions.php does not work:

    remove_action(‘tribe_events_single_event_after_the_meta’, ‘tribe_single_related_events’);

    nor settings/ as seen here:

    Hide related events

    something is overriding…

    #1203795
    Sascha
    Participant

    Jetpack has its fingers there.

    To remove related posts on bottom of page, paste this code into /theme/functions.php

    function jetpackme_remove_rp() {
    if ( class_exists( 'Jetpack_RelatedPosts' ) ) {
    $jprp = Jetpack_RelatedPosts::init();
    $callback = array( $jprp, 'filter_add_target_to_dom' );
    remove_filter( 'the_content', $callback, 40 );
    }
    }
    add_filter( 'wp', 'jetpackme_remove_rp', 20 );

    cheers

    #1203980
    Nico
    Member

    Hey Sascha,

    Thanks for getting in touch with us and for the heads-up about the resolution of the issue! I really appreciate you posting the code to get this working 🙂

    I’ll go ahead and close out this thread, but if you need help with anything else please don’t hesitate to create a new one and we will be happy to assist you.

    Best,
    Nico

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Related Events’ is closed to new replies.