Forum Replies Created

Viewing 2 replies - 16 through 17 (of 17 total)
  • Thread Starter AlfaOmega

    (@alfaomega)

    Hi Sayan,
    Both would be great (Published on…followd by…Last updated on…)
    Keep up the great work

    Thread Starter AlfaOmega

    (@alfaomega)

    I don’t have that file as a part of my theme.
    I could only find the post date code in my theme/library/core.php

    /*********************
    POST DATE
    *********************/
    if ( ! function_exists( 'cb_get_byline_date' ) ) {
        function cb_get_byline_date( $cb_post_id ) {
    
            $cb_date = NULL;
            $cb_meta_onoff = ot_get_option('cb_meta_onoff', 'on');
            $cb_byline_date = ot_get_option('cb_byline_date', 'on');
    
            if ( ( $cb_meta_onoff == 'on' ) && ( $cb_byline_date != 'off' ) ) {
    
                $cb_date = '<div class="cb-byline cb-byline-short cb-byline-date"><span class="cb-date"><time class="entry-date updated" datetime="' . get_the_modified_date('Y-m-d', $cb_post_id) . '">' . date_i18n( get_option('date_format'), strtotime( get_the_time('Y-m-d', $cb_post_id ) ) ) . '</time></span></div>';
    
            }
    
            return $cb_date;
        }
    }
Viewing 2 replies - 16 through 17 (of 17 total)