• Resolved Alex

    (@asterix)


    Hi Sayan,

    Great plugin. Unfortunately stopped working on our site with Astra theme after the update from 1.7.7. to 1.8.1. I had to revert the update to get the modified date back.

    I noticed in the code it now posts both dates on our post, but it only shows the original publication date. Dates in the XML sitemap seem okay. Plugin settings are the same.

    1.7.7 (this is what we want to show)
    <span class="posted-on"><span class="updated" itemprop="dateModified"> May 23, 2022</span></span>

    1.8.1 (this only prints the original (old) date on the page – not what we want)
    <span class="posted-on"><span class="published" itemprop="datePublished"> September 5, 2017</span><span class="updated" itemprop="dateModified"> May 23, 2022</span></span>

    • This topic was modified 2 years, 10 months ago by Alex.
    • This topic was modified 2 years, 10 months ago by Alex.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Sayan Datta

    (@infosatech)

    Hi,

    It seems that you were using Astra Theme support option under Template Tags Tab which is now removed.

    You can use Replace method instead:
    https://prnt.sc/l4MS_slA_gj9
    https://prnt.sc/qqscqhrHM1Yd

    Hope it helps.

    Thank you.

    Thread Starter Alex

    (@asterix)

    That worked like a charm, thanks Sayan!

    Thread Starter Alex

    (@asterix)

    Ah okay, while it looks great on the front-end I’m seeing it print the “published” date in the code, which it did not before. Is there a way to only print the “updated” date?

    The concern being that we’ve seen historically how printing an older date can confuse Google and mess up our rankings.

    Example:

    <span class="posted-on"><span class="published" itemprop="datePublished"> May 15, 2015</span><span class="updated" itemprop="dateModified"> December 14, 2021</span></span>

    • This reply was modified 2 years, 10 months ago by Alex.
    Plugin Author Sayan Datta

    (@infosatech)

    Hi @asterix

    Please use this configuration:

    https://prnt.sc/yXtDqMe6NGe-
    https://prnt.sc/naHO88_3IIJe

    Hope it helps. Thank you.

    • This reply was modified 2 years, 10 months ago by Sayan Datta.
    Thread Starter Alex

    (@asterix)

    Thanks Sayan. It almost works, but not quite. If I select “hide from search engine” the date disappears completely:

    <span class="published" itemprop="datePublished"> </span><span class="updated" itemprop="dateModified"> </span></span>

    If I select “replace modified” it shows up twice:

    <span class="published" itemprop="datePublished"> March 4, 2022</span><span class="updated" itemprop="dateModified"> March 4, 2022</span></span>

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Broken on Astra theme after update to 1.8.1’ is closed to new replies.