Support » Plugin: All-in-One Event Calendar » [Plugin: All-in-One Event Calendar] Show Event with Posts and include in RSS

Viewing 15 replies - 1 through 15 (of 19 total)
  • Plugin Contributor Yani Iliev


    In future versions, there will be an option available on the settings page.
    For version 1.0.9, you will have to modify your functions.php file located in your theme folder.

    Add the following code to the beginning or end of the file:

     * ai1ec_request function
     * Alters the request query
     * @param array $request Request query
     * @return array
    add_filter( 'request', 'ai1ec_request' );
    function ai1ec_request( $request ) {
      if( isset( $request['feed'] ) && ! isset( $request['post_type'] ) ) $request['post_type'] = array( 'post', 'ai1ec_event' );
    	return $request;

    Nice to hear that it will be included, and thank you, but it did not work.

    I get the error

    Warning: Cannot modify header information – headers already sent by (output started at …/wp-content/themes/autumn-concept-10/functions.php:66) in …/wp-includes/pluggable.php on line 934

    when putting it in either beginning or end of file (66 changed when beginning of file).

    The post is made, but only to the calendar. I get the same error when deleting events.

    If you add the code to the beginning if functions.php it must be after the initial <?php and if you add it to the end it must be before the ending ?> (if there is one). There can also not be any whitespace or newlines after the ending ?>

    (I’ve tried it with the Twenty Eleven theme and it works.)

    I can’t see any feed after adding this code in fucntions.php
    The calendar is filled with events, what can be wrong?

    OK, I inserted it the right place this time, in the top. I get no errors, but it does not have an effect, either.

    I use the Autumn Concept theme. Event posts do not show up among the posts.

    Is there any info I can provide which could help solve this problem?

    As a follow up, I have just tested with the Twenty Eleven theme, and it did not have the desired effect on my site (

    A further follow up: I tried the suggested solution on a almost all fresh site, with no other plugins than this calendar and askimet active and running the Twenty Eleven theme on WP 3.2.1. and it still didn’t have the desired effect.

    Now I’m seriously thinking I must have missed something. Is there any trivial check-box I should have checked or unchecked or anything like that?

    Ok I got this working with the code above.

    My next question is it possible to sort this rss feed by event start date and not the post date?
    This is useless cause now it shows old events.

    I just imported several ical feeds.




    It works for me, too, with the above code — at least the posts show up in the rss feed, but I stoill do not get them on my home page, along with all the others.

    this works for feed and home but how to get it working in certain category???

    add_filter( 'request', 'ai1ec_request' );
    function ai1ec_request( $request ) {
      $request['post_type'] = array( 'post', 'ai1ec_event' );
    	return $request;

    Better code:

    but there is a problem with parent category…it doesnt show events from subcategory

    Hi thanks to everyone who has given info so far it’s helped me a lot 🙂 Just have one question though…How do i get the rss feed to be in order of event date rather than when the event post was created?

    Many thanks in advance

    yea! thanks the provided code worked for me!

    ok, well it sorta worked… I have removed the code, suggested above, because events imported using the iCalendar/.ics Feed URL function would jump to the top of the feed (regardless of when the imported event was originally posted).

    Because the ‘ICS Import Setting’ can only be set to “Hourly”, Twice a Day” or “Daily”… events I posted yesterday don’t show on the feed because imported events just ‘refreshed’ itself seven hours ago…


    1. (preferred) would be nice to be able the “ICS Import Setting’ to refresh only when I tell it too
    2. specify which event categories get added to the feed

    has anyone figured out how to sort events by event start date and not post date?
    trying to figure out how to do that.


Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘[Plugin: All-in-One Event Calendar] Show Event with Posts and include in RSS’ is closed to new replies.