WordPress.org

Ready to get started?Download WordPress

Forums

Is post date hard-coded? Doesn't respond to config changes (2 posts)

  1. dsavadra
    Member
    Posted 4 years ago #

    I noticed that, when I went into General Settings and updated the date and time formats, it has no effect on the blog post date/time format. Is this format hard-coded in one of the php files? If so, which one?

  2. kz
    Member
    Posted 4 years ago #

    the_date(/* no args */) use date format option.
    the_date(get_option('date_format')) outputs same result.

    the_time(/* no args */) use time format option.
    the_time(get_option('time_format')) outputs same result.

    If you specified format directly like the_date('F n, Y') or the_time('F n, Y'), general settings has no effect.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags