WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Event Calendar 3] Move schedule box (4 posts)

  1. serpico
    Member
    Posted 4 years ago #

    Is it possible to move the Schedule Box which appears in events posts?

    Instead of having it at the start of the post, I would like to move it to be appanded to the end of the post copy? Is this possible? Can someone point me to the file to achieve this.

    Thanks,

    http://wordpress.org/extend/plugins/event-calendar/

  2. roguegeer
    Member
    Posted 4 years ago #

    I also need to do this - in particular, the theme we are using takes the first n chars of a post and overlays that on a giant 'thumbnail' on the front-page news rotator. events now look hideous because they show

    November 25, 20097:00 pm[ November 25, 2009; 7:00 pm; ]

    instead of the introduction to the event.

    ANY help or comment about ho wto go about achieving this (moving the schedule box to the END of a post) would be greatly appreciated!!

  3. roguegeer
    Member
    Posted 4 years ago #

    A fix:
    wordpress\wp-content\plugins\event-calendar\eventcalendar3.php

    change line 540

    function ec3_filter_the_content(&$post_content)
    {
      //return ec3_get_schedule() . $post_content;
      return $post_content . ec3_get_schedule();
    }

    This of course didn't solve my problem re: excerpts. I didn't want schedules in my excerpts at all, so I removed the filter hooks around line 595:

    // remove_filter('get_the_excerpt', 'wp_trim_excerpt');
     // add_filter('get_the_excerpt', 'ec3_get_the_excerpt');

    I am sure this si all evil, but it would be NICE to have:
    1.) "schedule block at beginning [] or end [] of post?" options on the admin panel

    2.) "include schedule in excerpts [] ?" option on the admin panel.

    and then check those settings and adjust accordingly.

  4. 8persap
    Member
    Posted 4 years ago #

    roguegeer - Thank you so much for taking the time to update this post with a solution, it's just what I've been looking for.

    Spent hrs looking for the code to stop the schedule being pulled into experts. Thank you!

    Now I just need to work out how to get events that start on one day from displaying in the nxt day in the side bar calendar!

    Cheers

    Mark.

Topic Closed

This topic has been closed to new replies.

About this Topic