• Resolved ammar.shahraki

    (@ammarshahraki)


    Thanks to grate theme.

    But, there is a little bug in the theme. Instead of displaying the date that the post written in, in the tagline the current date is always displayed.

    to fix this, the line 669 of function.php should change to this:
    $post_date = get_the_date(get_option( ‘date_format’ ));

Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author Ben Sibley

    (@bensibley)

    Thanks for using Mission News!

    I’m not able to recreate this issue and see the post’s date displaying properly in the byline. The existing code is similar to your edit but also internationalizes it to support different formats:

    $post_date = date_i18n( get_option( 'date_format' ), strtotime( get_the_date('r') ) );

    get_the_date() is meant to be used within “the loop” and always returns the date of the current post.

    • This reply was modified 5 years, 11 months ago by Ben Sibley.
    Thread Starter ammar.shahraki

    (@ammarshahraki)

    Thanks for attention.

    I use this theme for a Persian website and using wp-jalali plugin to make the website suitable for Persian users. the plugin make some adjustment including date conversion. Using original line, the current date (today) is shown in byline section of all posts.
    I fixed it in my site by changing that line.

    Theme Author Ben Sibley

    (@bensibley)

    Okay I see. Thanks for the tip!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Bug Report: The Post Date’ is closed to new replies.