WordPress.org

Ready to get started?Download WordPress

Forums

Event Organiser
Post events to main blog feed? (5 posts)

  1. Scott DeToffol
    Member
    Posted 2 years ago #

    Is there a way for the events to appear on the main blog as posts?

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

  2. Stephen Harris
    Member
    Plugin Author

    Posted 2 years ago #

    Yes, there are several ways of doing it. Essentially you just need to include the 'event' post type in the main loop. There are some drawbacks however. See related thread:
    http://wordpress.org/support/topic/plugin-event-organiser-add-events-to-main-loop-and-feed

  3. Scott DeToffol
    Member
    Posted 2 years ago #

    Steven, I posted a question on that thread you linked to about adding events to the main loop when using the Genesis framework. Any help with that specific instance would be appreciated, thanks!

    Love the plugin BTW, thanks.

  4. Stephen Harris
    Member
    Plugin Author

    Posted 2 years ago #

    Cheers! I'm afraid I've never used the Geneisis framework. One of the files in the theme will contain the loop: Something like:

    while(has_posts()): the_post();

    `endwhile;

    See the linked topic on what alterations to make just before it. But as I say, I've never used it, so I can't be of anymore help.

  5. Scott DeToffol
    Member
    Posted 2 years ago #

    I figured out how to use the Genesis Simple Hook plugin to get the code before the hook.

    <?php
    global $wp_query;
    $args = array_merge( $wp_query->query, array( 'post_type' => array('post','event') ));
    query_posts( $args );
    ?>

    But, when I have this code on the site, the events no longer show up in the Events Organizer loop ("Sorry, no posts matched your criteria."), and they still don't show up on the main loop. I can still get to the event page itself though, so it is there.

    I'm close, I just know it!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic