WordPress.org

Support

Support » Plugins and Hacks » Events Manager » [Resolved] Easy way to theme Events Manager with regular wordpress themes?

[Resolved] Easy way to theme Events Manager with regular wordpress themes?

Viewing 6 replies - 1 through 6 (of 6 total)
  • 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/

    Plugin Author Marcus

    @netweblogic

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

    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.

    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.

    Placeholders

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

    that’s great.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Resolved] Easy way to theme Events Manager with regular wordpress themes?’ is closed to new replies.
Skip to toolbar