Feed not capturing post date

This topic is: resolved

 

Thank you for contacting me. Please note that I live in the GMT+3 time zone - responses might be delayed by this.

Viewing 2 reply threads
  • Author
    Posts
    • #1550


      brendanspaar
      Participant
      Post count: 1

      There is one feed that I am pulling from that is not returning a post date.  All other feeds are working and returning correct post dates.  This feed returns today’s date.  I have replicated the issue on the Live Demo as well as my own site.

       

      Feed: https://georgiarecorder.com/?s=voting&feed=rss

      This site uses WP-Security so you will need to change the user-agent to:

      Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36

      And be careful that you don’t get “locked out.”

      Is there a way that I can locate the post date from the article and pass that on to echo?  Thanks!

    • #1551


      Szabi – CodeRevolution
      Keymaster
      Post count: 4573

      Hello,

      First of all, thank you for your purchase.

      I checked and the feed you linked (https://georgiarecorder.com/?s=voting&feed=rss) does not seem to contain a date in it’s content. Please check an example item from the post:

       

      <item>
      		<title>Early voting begins, state lawmakers still can&#8217;t raise campaign cash</title>
      		<description><![CDATA[<p>State lawmakers who face primary challengers raised the last dollar for their re-election bids back in early January before they were gaveled into session. And a law that forbids fundraising during a legislative session – even one suspended for months because of a pandemic – will keep donors at bay until after the final votes [&#8230;]</p>
      <p>The post <a rel="nofollow" href="https://georgiarecorder.com/2020/05/18/early-voting-begins-state-lawmakers-still-cant-raise-campaign-cash/">Early voting begins, state lawmakers still can&#8217;t raise campaign cash</a> appeared first on <a rel="nofollow" href="https://georgiarecorder.com">Georgia Recorder</a>.</p>
      ]]></description>
      		<link>https://georgiarecorder.com/2020/05/18/early-voting-begins-state-lawmakers-still-cant-raise-campaign-cash/</link>
      			</item>
      

      This is why the plugin is now able to get the date from this feed, because it is not
      containing a date for feed items. In this case, the plugin can import only the current date for
      feed items, for generated posts.

      Regards,
      Szabi – CodeRevolution.

    • #1554


      brendanspaar
      Participant
      Post count: 1

      Hi Szabi,

      Thanks for the quick response.  Is there any way to pull the information from classes inside the full article?  Using this example it would be:

      <span class=”td-post-date td-post-date-no-dot” data-wahfont=”11″ style=”font-size: 11px;”><time class=”entry-date updated td-module-date” datetime=”2020-05-18T07:00:57+00:00″>May 18, 2020</time></span>

      <time class=”entry-date updated td-module-date” datetime=”2020-05-18T07:00:57+00:00″>May 18, 2020</time>

      </span>

      Thanks again for a great plugin and for your assistance!

Viewing 2 reply threads

The topic ‘Feed not capturing post date’ is closed to new replies.