• Hi, I would like to delete the post date and the author in a blogpost.
    The date when the post was updated should stay.

    Which code can I use?
    I used

    Where can I edit the text UPDATED and how can I change the date from SEPTEMBER 7, 2016 to 7 september 2016.

    Thanks again!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi Triep. Give this a try:

    1. Copy /parts/single-author-date.php from the parent theme to the same path in a child theme.

    2. Change the child theme file content so it looks like this:

    <?php
    /*  Print the post author. Compatible with Google Structured data. Must be used in the WordPress loop
    * @php return html string
    /* ------------------------------------ */
    $published_date = get_the_date( get_option('date_format') );
    ?>
    <p class="post-byline">
        <?php _e('Updated', 'hueman'); ?> <time class="updated" datetime="<?php the_modified_date( get_option('date_format') ); ?>"><?php the_modified_date( get_option('date_format') ); ?></time>
    </p>

    3. You can change ‘Updated’ in the code above.

    4. You can change the date format in admin Settings > General > Date Format > Custom “j F Y”.

    Thread Starter Triep

    (@triep)

    Thanks BdBrown,

    But nothing changed!
    BY ADMIN · PUBLISHED SEPTEMBER 4, 2016 · UPDATED SEPTEMBER 8, 2016 is still on.

    Do you have some other ideas?

    Are you using a cache plugin? CDN? Did you clear your browser cache? Also, please post a link to your site so we can see the changes. Thanks.

    Thread Starter Triep

    (@triep)

    Yes, I’m using a cache plugin…stupid.
    The site is still under construction so I can’t post a link.

    Thanks!

    You’re welcome. No problem; there are many pieces to the puzzle and sometimes you miss one.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Hide post date & author. Update has to stay’ is closed to new replies.