• Resolved andrewelm

    (@andrewelm)


    I have a couple questions that are both related to displaying the post:
    1. How can I edit the title of the post which currently reads “This Day in History”
    2. Is it possible to display the date on the post in the format Month, DD, YYYY (ie: February 20, 2019). It currently displays in the YYY-MM-DD format.

    See the link above for examples.

    Thanks

    Andrew

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Anonymous User 393930

    (@anonymized-393930)

    To do this you must first copy default-single-tdih_event.php from the plugin directory to your themes directory and rename it to single-tdih_event.php. This will make sure that any changes you make will not be overwritten when you next update the plugin.

    In the new single-tdih_event.php file edit line 9 from

    the_title('<h2>This Day In History: ', '</h2>');

    to

    echo '<h2>Your Title: '.DateTime::createFromFormat('Y-m-d', get_the_title())->format('F j, Y').'</h2>';

    You can change Your Title here to be what you want.

Viewing 1 replies (of 1 total)

The topic ‘Change the Post Tile and Displayed Date Format’ is closed to new replies.