Date Format Inconsistent After Upgrade From Lite to Pro

Discussion in 'Andrina WordPress Theme' started by sandymcdonald, May 30, 2013.

  1. sandymcdonald

    sandymcdonald Member

    Joined:
    May 29, 2013
    Messages:
    100
    Likes Received:
    1
    Date displays correctly on Blog Page. i.e.. 'May, 29, 2013'

    Date displays incorrectly on both Category Results Page and on the Single Post Blog pages. i.e.. '5,29,2013'.

    What is causing this?
     
  2. sandymcdonald

    sandymcdonald Member

    Joined:
    May 29, 2013
    Messages:
    100
    Likes Received:
    1
    Just checked and blog.php is using (M,d,y) for post_date, while the loop.php is using (m,d,y).

    Dates were displayed in consistent format in the Lite version. The code for the blog and loop files are using the_date() in the post_date code.

    What is the best was for me to correct this until it is corrected in a Pro release?
     
  3. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207
    Hello,
    Go to single.php present in your theme directory and replace current code
    Code:
    <?php echo get_the_time('m, d, Y') ?>
    with

    Code:
    <?php the_date(); ?>
    Sending image for reference

    [​IMG]


    Use same process for loop.php also.
     
  4. sandymcdonald

    sandymcdonald Member

    Joined:
    May 29, 2013
    Messages:
    100
    Likes Received:
    1
    Will this be corrected in your next release? If not, the change will be overwritten. If I make child files then I will miss any updates. What is the best thing to do?
     
  5. Nitesh

    Nitesh Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    5,165
    Likes Received:
    160

    Attached Files:

  6. sandymcdonald

    sandymcdonald Member

    Joined:
    May 29, 2013
    Messages:
    100
    Likes Received:
    1
    Thanks, I already had a child theme, I just added the single.php and loop.php files to the child theme. I also went ahead and added the blog.php file and made the same change.

    The loop and single .php files cause the month to display as a number instead of the month name.
    The blog.php file displays an extra comma after the month name.

    Can you please enter a ticket to request these changes in the next release? I will pay attention and when corrected, I will delete the 3 files from my child theme so that I can get any future updates you guys make in those files.

    Thank you for your help.
     

Share This Page