WordPress.org

Ready to get started?Download WordPress

Forums

Fetch_feed with todays date? (1 post)

  1. Daym
    Member
    Posted 2 years ago #

    Heya, I'm tying to get a feed to be shown below each post but i just can't manage to show it the way i want to.
    I want to show a feed for todays date by using fetch_feed linking to http://www.domain.com/y/m/d/feed/atom where ymd is year, month and day.

    What going wrong? I've tryid to echo $url.$date.$atom and it shows the correct link to my feed. But it wont work when i use it in the script..

    $atom = ('/feed/atom');
    $date = date('Y/m/d');
    $url = ('http://domain.com/'); 
    
    $rss = fetch_feed ($url.$date.$atom);
    ......

    http://codex.wordpress.org/Function_Reference/fetch_feed

    Regards
    Tobbe

    [No bumping, thank you.]

Topic Closed

This topic has been closed to new replies.

About this Topic