Viewing 2 replies - 1 through 2 (of 2 total)
  • Would you mind sharing what you’re manually adding? I was wishing for “offset”, and I think this would solve what I was looking for.

    Plugin Author Brian Hogg

    (@brianhogg)

    There’s a few new filters, so you should be able to do something like this in (ideally) a functional plugin or your functions.php file:

    
    function my_set_offset_for_events_calendar_shortcode( $args, $atts ) {
        if ( isset( $atts['offset'] ) ) {
            $args['offset'] = intval( $atts['offset'] );
        }
        return $args;
    }
    add_filter( 'ecs_get_events_args', 'my_set_offset_for_events_calendar_shortcode', 10, 2 );
    

    which would allow you to add offset=’5′ (or whatever) inside your shortcode.

    • This reply was modified 8 years, 4 months ago by Brian Hogg.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Suggestion: add 'offset' to params?’ is closed to new replies.