• I’m trying to create a RSS feed for my blog. I have written the following code in my functions.php on my child theme and calling it using a shortcode

    function myRSS_Func(){
    include_once(ABSPATH . WPINC . ‘/rss.php’);
    wp_rss(‘https://www.clickflickreview.com/category/reviews/feed/’, 3);
    }
    add_shortcode( ‘myRSS’, ‘myRSS_Func’ );

    I get the following error on the test page I tried it. “An error has occurred, which probably means the feed is down. Try again later.”

    Is there an alternate solution or what could be wrong?

Viewing 1 replies (of 1 total)
  • dogdays

    (@dogdays)

    TRY: https://www.clickflickreview.com/feed

    It works… just fixed my feed because I was assuming that it was in the same directory as my WordPress installation; wrong.

    Evidently, it is at the “Site Address (URL).” You have to change the feed url address in whatever widget you have it in to fix it.
    Could be both the theme settings or a footer or sidebar widget.

    In your case, change the url in your code.

    Although, I’m pretty sure the feed php file is a core file, so you probably don’t need to write that function…

Viewing 1 replies (of 1 total)
  • The topic ‘An error has occurred, which probably means the feed is down. Try again later.’ is closed to new replies.