Hello, I’ve been struggling with this same issue for about an hour or more now…I’ve tried importing via SimplePie, random WP functions, and then this method and it seems something is wrong with my use of every one of them.
This one gets the closest, but it messes up my main loop on the home page.
I’ve got a home page displaying by default, with a loop to grab its content. Then on that same page’s template there’s another loop using the code from the article above to pull the title from the most recent news post on a sort of page-sidebar. It seems the two loops are fighting, and if I take out the ‘recent news’ loop, the ‘home page’ one works, but if I add in the ‘recent news’ loop, it replaces the ‘home page’ content with the ‘recent news’ post content.
It’s pretty frustrating, and my PHP knowledge is basically nil. Any ideas?