Support » Themes and Templates » Delete dates added by Event Calendar plugin in Options Theme excerpts

  • Resolved rwanito


    I paste here the solution given to delete dates added in excerpts by Event Calendar :

    The file to modify is inside the plugin: wp-content/plugins/event-calendar/eventcalendar3.php

    The last lines of the page are like that:

      remove_filter('get_the_excerpt', 'wp_trim_excerpt');
      add_filter('get_the_excerpt', 'ec3_get_the_excerpt');
        // In advanced mode, exclude events from the archive.
        add_filter('getarchives_join', 'ec3_filter_getarchives_join');

    Commenting this line:
    add_filter('the_posts', 'ec3_filter_the_posts');
    prevent any dates to be written anywhere within the post (both excerpt and full post)

    But, because you can turn off in the plugin options dates in the full post, you just need to comment this line:
    add_filter('get_the_excerpt', 'ec3_get_the_excerpt');
    to get rid of dates in the excerpts of the various blocks of Options Theme.

    Found here :

  • The topic ‘Delete dates added by Event Calendar plugin in Options Theme excerpts’ is closed to new replies.