• Hi, I’m trying to add a simple feature of let each author page display the calendar with their posts. I have tried this method which usually works with custom queries but isn’t working with this calendar. I’m sure there are others with the same problem, and I’m hoping someone else has found a solution. Thanks!

    <?php function filter_where( $where = '' ) {
    	$curauth = (get_query_var('author_name')) ? get_user_by('slug', get_query_var('author_name')) : get_userdata(get_query_var('author'));
    
    	$where .= " AND post_author = '".$curauth->ID."'";
    			return $where;
    	}
    add_filter('posts_where', 'filter_where');?>
    
    <?php echo do_shortcode('[ai1ec]'); ?>

    http://wordpress.org/extend/plugins/all-in-one-event-calendar/

  • The topic ‘Simple Request: Make Calendar Filtered for Author Page’ is closed to new replies.