WordPress.org

Ready to get started?Download WordPress

Forums

Events
Possible to only show archive from last 6 months? (2 posts)

  1. plugins_lexblog
    Member
    Posted 2 years ago #

    Hi,

    I'm trying to get things perfect with this plugin. I see the shortcode to show archives posts... But I only want to show posts from the past 6 months!

    Possible?

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

  2. plugins_lexblog
    Member
    Posted 2 years ago #

    Changed line 289 in wp-events-functions.php to filter for 6 months:

    $events = $wpdb->get_results("SELECT * FROM".$wpdb->prefix."eventsWHEREarchive= 'yes' ANDthetime<= $present ANDthetime>= ($present - 15778463)$category$one_event ORDER BY $order$amount");

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.