Viewing 3 replies - 1 through 3 (of 3 total)
  • Looks like you can specify which posts date get_the_time should return. You can’t specify it for get_the_modified_time – it only returns the modified time for the current page/post. So this can’t be fixed, right? Or it needs a custom query instead of get_the_modified_time.

    Thread Starter AACT

    (@aact)

    Would using get_post_modified_time help? It optionally takes a post id or object as a parameter.

    get_post_modified_time fixes the problem! Thanks!

    I changed row 477 in wp-content/plugins/list-category-posts/include/lcp-catlist.php

    old:
    return get_the_modified_time($this->params[‘dateformat’], $single);

    change to this:
    return get_post_modified_time($this->params[‘dateformat’], false, $single, true );

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Problem with showing the modified date’ is closed to new replies.