Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: h-mag.com

p.s. re: my custom template tag above to show the start dates in the directory view… I just clued in and realized that I should be doing this in the functions.php file rather than hacking Erwin’s plugin. So here’s the function to add to the functions.php file of your theme.

function bp_the_site_event_date_start() {
echo bp_get_the_site_event_date_start();
}
function bp_get_the_site_event_date_start() {
global $site_events_template;

return apply_filters( 'bp_get_the_site_event_date_start', date( ('l M j - Y'), $site_events_template->event->date_start ) );
}
add_action( 'plugins_loaded', 'bp_the_site_event_date_start');

Then in the event directory loop template in your theme, just call it like this

<?php p_get_the_site_event_date_start() ?>

Skip to toolbar