WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Event Manager] Show event with EventNotes first (1 post)

  1. luismidelgado
    Member
    Posted 1 year ago #

    Hi,

    I used this snipped from http://wordpress.org/support/topic/plugin-events-manager-show-events-as-regular-posts-articles?replies=27, to show Events like a post:

    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;
    }

    But in the home page i obtain:
    1.- Category event
    2.- Name event
    3.- Posted on date month year
    4.- Loading Map ...
    5.- Date/Time
    6.- Location
    7.- Category(ies)
    8.- Text of the event.

    ┬┐How can i show only 1,2,3 and 8?
    I want to show only the text of the event like a post of wordpress.

    Thanks for all.

Topic Closed

This topic has been closed to new replies.

About this Topic