Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Paul Ryan

    (@figureone)

    The All-in-One Event Calendar plugin globally hooks into the the_content filter to add the event details, so when you are inserting a page onto an event page, it inserts the event details for the contents of the main page, and the contents of the inserted page.

    You can hook into the ai1ec_event_content and check for the context, and decide whether to show to unedited content, or the content with the event details inserted. Example:

    function my_ai1ec_event_content( $modified_content, $original_content ) {
    	return 'ai1ec_event' === get_post_type() ? $modified_content : $original_content;
    }
    add_filter( 'ai1ec_event_content', 'my_ai1ec_event_content', 10, 2 );

    FYI the ai1ec_event_content filter is defined here: https://plugins.trac.www.ads-software.com/browser/all-in-one-event-calendar/trunk/lib/http/response/render/strategy/html.php#L113
    I wasn’t able to find any documentation from those plugin authors on it, though.

    • This reply was modified 6 years, 11 months ago by Paul Ryan.
    Plugin Author Paul Ryan

    (@figureone)

    Oh one other thing to make this work: make sure in Insert Pages Settings you are using “legacy method” for inserting pages (this makes sure that the global context for the page being inserted is set).

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Conflict with plugin All-in-one event calendar’ is closed to new replies.