Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- This snippet will create new event placeholder to display multiple authors of the event.
- might be possible using custom codes and plugins:
- 1. download and install wp plugin Co-Authors Plus
- once installed; you can now create events with multiple authors
- 2. open your theme functions.php and paste this snippet
- */
- add_filter('em_event_output_placeholder','my_em_placeholder_mod_add_event_contact',1,3);
- function my_em_placeholder_mod_add_event_contact($replace, $EM_Event, $result){
- if ( $result == '#_EVENTMULTIPLEAUTHOR' && function_exists('coauthors_posts_links') ) {
- $replace = coauthors_posts_links( null, null, null, null, false );
- }
- return $replace;
- }
- Usage: you can now use placeholder #_EVENTMULTIPLEAUTHOR
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement