• Hi, firstly let me say that I love the plugin. It is really helpful. I just have a little problem. It also shows the reading time in the meta data in header in the fields meta property=”og:description” and meta name=”twitter:description”. Any idea how I can avoid that? Thanks for the support

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jason Yingling

    (@yingling017)

    Hmm, my guess would be that Reading Time is filtering the_content before whatever theme / plugin function generates that og meta data.

    Yoast SEO allows you to set custom meta descriptions which could help. Which is probably your best bet.

    But I also think changing line 49 of rt-reading-time.php to:

    if ( isset($rtReadingOptions['before_content']) && $rtReadingOptions['before_content'] === 'true' && is_main_query() ) {

    And line 50 to:

    if( isset($rtReadingOptions['before_excerpt']) && $rtReadingOptions['before_excerpt'] === 'true' && is_main_query() ) {

    I’ll need to run some tests on that before pushing it out as an update, but that should check if WordPress is currently in the main query before outputting the reading time.

    Let me know if this helps at all.

    Thread Starter sachcontrol

    (@sachcontrol)

    Hi Jason,

    thank you very much for your swift response. We will try to use Yoast SEO to solve the problem. I will keep you posted if that resolves the issue.

    Best regards
    Stefan

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Reading time shows in Meta’ is closed to new replies.