Forums

How to Display/Echo pubDate Using fetch_rss (2 posts)

  1. Mark_I
    Member
    Posted 4 years ago #

    I am using this code to make lists of external links on a page. It works wonderfully but I am unsure how to display publication date for each item.

    Any suggestions? Thanks!

  2. rajdash
    Member
    Posted 4 years ago #

    Use the value $item['pubdate']
    E.g.,

    <?php echo $item['pubdate']; ?>

    Just make sure that any feed you use has the <pubDate></pubDate> tag pairs.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags