Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function em_ical_slug( $args ){
- global $wp;
- $URL = explode('/', $wp->request );
- /*
- category / category name
- sample URL: activiteit/categorie/commissieactiviteit/
- */
- if ( is_array($URL) ){
- $type = ( isset($URL[1]) ) ? $URL[1]:"";
- if( $type == 'categorie' || $type == 'categories' ){
- $args['category'] = $URL[2];
- }
- }
- return $args;
- }
- add_filter('em_calendar_template_args','em_ical_slug',100,1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement