• Resolved Mbox

    (@madboxsi)


    Hello.

    Is there a way to change the time format of individual live blogs so as not to show how long ago it was published (EXAMPLE: 4 minutes ago) but to post a timestamp (EXAMPLE: at 14:06) of every single live blog?

    Thanks

Viewing 1 replies (of 1 total)
  • Plugin Author Jeffrey van Rossum

    (@jeffreyvr)

    There is no built in option for this at the moment.

    You could however, if you have the ability, overwrite the post-template from your theme.

    To do this, create this file in your theme: /elb/post.php.

    File could look something like this:

    <?php
    do_action( 'elb_before_liveblog_post', $post );
    ?>
    
    <p class="elb-liveblog-post-time"><time datetime="<?php echo get_the_time( 'Y-m-d H:i' ); ?>"><?php echo get_the_time( 'Y-m-d H:i' ); // your custom timestamp ?></time></p>
    
    <?php if ( elb_display_author_name() ) { ?>
    <p class="elb-liveblog-post-author"><?php printf( __( 'By %s', ELB_TEXT_DOMAIN ), get_the_author() ); ?></p>
    <?php } ?>
    
    <h2 class="elb-liveblog-post-heading"><?php elb_entry_title(); ?></h2>
    
    <div class="elb-liveblog-post-content"><?php elb_entry_content(); ?></div>
    
    <?php echo elb_get_template_part( 'sharing' ); ?>
    
    <?php if ( current_user_can( 'edit_post', $post ) ) { ?>
    	<div class="elb-liveblog-actions">
    		<?php edit_post_link(); ?>
    	</div>
    <?php } ?>
    
    <?php do_action( 'elb_after_liveblog_post', $post ); ?>
Viewing 1 replies (of 1 total)
  • The topic ‘Time of individual live blogs’ is closed to new replies.