RSS with event date

This topic contains 3 replies, has 2 voices, and was last updated by  Stephen Harris 11 years ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #9664

    Another question…
    When I use http://mysite.com/events/event/feed/ I don’t get the event date. Where can I organize the output of my event feed?

    Paksha Thullner
    #9674

    That’s the RSS feed. The url of your iCal feed can be found in Settings > Event Organiser > General.

    There isn’t an RSS feed with event dates because RSS feeds are intended for posts. (In fact I believe you shouldn’t include ‘future dated’ items in RSS feed).

    Stephen Harris
    #9691

    I managed by including the start date of an event into the title of the RSS items. <br>
    Fortunately your RSS feed is already sorted by the eventdate <br>
    These sites helped me:<br>
    http://codex.wordpress.org/Customizing_Feeds#Customizing_Feed_Templates<br&gt;
    http://www.wpbeginner.com/wp-tutorials/how-to-create-custom-rss-feeds-in-wordpress/<br&gt;
    In the loop I use the following code:

    <?php     $start = eo_format_datetime($occurrence['start'], $format);
              $title = get_the_title_rss();    ?>
    <item>  
            <title>   <?php     echo $start. " - ".$title;   ?>      </title>
            <link>    <?php the_permalink_rss(); ?>   </link>
           <description><![CDATA[        <?php the_excerpt_rss() ?>]]>       </description>
    </item>
    Paksha Thullner
    #9700

    Awesome 🙂

    Stephen Harris
Viewing 4 posts - 1 through 4 (of 4 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.