• Hi, there is a view that show only tot event (tot event from current day or, if empty, last tot event passed) but in a very simple way?
    Like nested ul whith only date and title and link?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi,

    We have 6 views, but it is not possible to show only the current day events.

    Thread Starter verowp2016

    (@verowp2016)

    Hi,
    not only the current day events.
    I need to show in home page the future five events in clendar.
    I search for an api, a rss feed, but I can’t find anything like.

    I can use the agenda views, but I don’t need the graphics. A simple ul or a node xml….

    Thanks!

    Thread Starter verowp2016

    (@verowp2016)

    Or better a “wp_query like” to use, whith params.

    Hi,

    I guess you can achieve by using wp_query something like this :

    $args = array(	'post_type' 	=> 'ai1ec_event',
    		'posts_per_page'=> -1,
    		'paged' 	=> -1,
    		'orderby' 	=> 'date',
    		'order' 	=> 'DESC',		
    			
    		);
    		
    $query = new WP_Query();
    $query->query( $args );
    if ($query->have_posts())
    		{while ($query->have_posts())
    					{ // do what you want to display}
    }
    wp_reset_query();

    Hope this will work.
    Thanks

    Thread Starter verowp2016

    (@verowp2016)

    This not work, not show the repeated events.

    Hi,

    To make it work with repeated events or events between the dates or next future events, you have to slightly modify your query as event dates are storing in separate tables from where you can pull the event id with respect to that date. These are the 2 tables which you can play around with.

    1. <yourtableprefix>_ai1ec_event_instances
    2. <yourtableprefix>_ai1ec_events

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Simple list’ is closed to new replies.