WordPress Feed URL redirecting to Login Page

enter image description here

I am trying to read wordpress feed url into php

This is link of
Wordpress Feed URL

When we click on this url it redirects to login page where as it should have shown the contents of feed.

Below is my php code to read this feed url


$xmlDoc = new DOMDocument();




When this code is executed it returns data but that data is of login page which we see when we click on feed url, I am not sure how can i stop this feed from redirecting to login page.

Read more here: WordPress Feed URL redirecting to Login Page

Leave a Reply

Your email address will not be published. Required fields are marked *