WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] Easy way to theme Events Manager with regular wordpress themes? (7 posts)

  1. audunmb
    Member
    Posted 2 years ago #

    I'm setting up a site that mainly will be used for events. Is it possible to use a regular WordPress theme with events?

    The site with the theme I would like to use is here. Having events in the table layout rather than posts would be nice?

    Is it possible to do this in an easy way, without a lot of coding?

    http://wordpress.org/extend/plugins/events-manager/

  2. agelonwl
    Member
    Posted 2 years ago #

    yes, basically you need to work on Settings > Formats/Layouts and some css adjustment.

    For more info:
    http://wp-events-plugin.com/documentation/
    http://wp-events-plugin.com/tutorials/

  3. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    In theory, EM will work with any well-written WP theme.

  4. audunmb
    Member
    Posted 2 years ago #

    agelonwl: What do I need to do in Settings > Formats/Layouts?
    I tried reading the documentation, but didn't really get it. How do I get the theme to apply to how events are shown?

    Do I have to code CSS for the events page myself?

    Marcus: the theme and EM works well enough, there is no conflict. I want events to show up on the front page, instead of posts, but in the same manner that the theme show posts now.

  5. agelonwl
    Member
    Posted 2 years ago #

    Hi,

    if you want to show events on your front page; you need to add function for custom post type to your theme function.

    e.g.
    (temporarily) switching to default twentyeleven theme and adding this function to the functions.php will let you do that.

    add_filter( 'pre_get_posts', 'my_get_posts' );
    function my_get_posts( $query ) {
    
    	if ( is_home() && false == $query->query_vars['suppress_filters'] )
    		$query->set( 'post_type', array( 'post', 'event' ) );
    
    	return $query;
    }

    then you can use Settings > Formats/Layouts to format your events using html tags and em placeholders.

    http://wp-events-plugin.com/documentation/placeholders/

  6. audunmb
    Member
    Posted 2 years ago #

    agelonwl: thanks, that's what I was looking for.

  7. agelonwl
    Member
    Posted 2 years ago #

    that's great.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic