-
-
Save joshfeck/dd973689274dd58ed34a05fc9fb8fa3e to your computer and use it in GitHub Desktop.
Add a previous event and next event link to the end of the single event pages in Event Espresso 4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//* Please do NOT include the opening php tag, except of course if you're starting with a blank file | |
//* Add a previous event and next event link to single event pages in Event Espresso 4 | |
function ee_previous_event_next_event_navigation(){ | |
?> | |
<div class="ee-after-event-navigation ee-clearfix"> | |
<div class="ee-after-event-navigation-previous" style="float:left"><?php previous_post_link('« %link', 'Previous Event: %title'); ?></div> | |
<div class="ee-after-event-navigation-next" style="float:right"><?php next_post_link('%link » ', 'Next Event: %title'); ?></div> | |
</div> | |
<?php | |
} | |
add_action( 'AHEE_event_details_after_post', 'ee_previous_event_next_event_navigation' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment