How to display the dates and times in a slider loop?
-
Hello there,
My question is in the title.
Explanations :
I use your great plugin Events Manager for a client’s website (thank you for it !) and I’ve found a free plugin which allow me to display recents events in a elegant slider on my home page.
Until there, it displays only the start date of the events but not the end date and time.
How can I make appear end date and time ?This is the loop of my slider home page :
<div class="post-content-left wp-medium-8 wpcolumns"> <?php if($showCategory) { ?> <div class="recentpost-categories"> <?php echo $cat_list; ?> </div> <?php } ?> <h2 class="wp-post-title"> <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> </h2> <?php if($showDate || $showAuthor) { ?> <div class="wp-post-date"> <?php if($showAuthor) { ?> <span><?php esc_html_e( 'By', 'wp-responsive-recent-post-slider' ); ?> <?php the_author(); ?></span><?php } ?> <?php echo ($showAuthor && $showDate) ? ' / ' : '' ?> <?php if($showDate) { echo get_the_date(); } ?> iii </div> <?php } ?> <?php if($showContent) { ?> <div class="wp-post-content"> <?php $customExcerpt = get_the_excerpt(); if (has_excerpt($post->ID)) { ?> <div class="wp-sub-content"><?php echo $customExcerpt ; ?></div> <?php } else { $excerpt = strip_shortcodes(strip_tags(get_the_content())); ?> <div class="wp-sub-content"><?php echo wprps_limit_words($excerpt,$words_limit); ?></div> <?php } ?> <?php if($showreadmore) { ?> <a class="readmorebtn" href="<?php the_permalink(); ?>"><?php _e('Read More', 'wp-responsive-recent-post-slider'); ?></a> <?php } ?> </div> <?php } ?> </div>
Thank you in advance for the time spent answering me!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How to display the dates and times in a slider loop?’ is closed to new replies.