[Support request] add time to read in meta date

Home Forums Support [Support request] add time to read in meta date

Home Forums Support add time to read in meta date

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #340559
    Giacomo

    Where can I add the do_shortcode(‘[rt_reading_rtime]’) to show the “time of reading” in the meta, near the date of the post and the autor? What file can I change and in how?
    Thanks

    #340718
    Leo
    Staff
    Customer Support

    Hi there,

    This hook should work: https://docs.generatepress.com/article/generate_after_entry_header/

    Let me know.

    #340775
    Tom
    Lead Developer
    Lead Developer

    Probably better to filter the date output:

    add_filter( 'generate_post_date_output', 'tu_time_of_reading_to_date' );
    function tu_time_of_reading_to_date( $output ) {
        return $output . do_shortcode( '[rt_reading_time]' );
    }
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.