2017-02-25 3 views
0

Wordpress RSSフィードを読み込んでPHPの別のウェブサイトに埋め込みました。simplexml_load_fileにはWordpressのデータがありません

simplexml_load_file('http://blog.sporttoury.com/feed'); 

しかし、私はポストのイメージ、カテゴリまたはテキストを取得することはできません。

SimpleXMLElement {#955 ▼ 
    +"title": "Website. Description of the website" 
    +"link": "http://blog.website.com/liktothepost" 
    +"pubDate": "Fri, 17 Feb 2017 07:56:43 +0000" 
    +"category": SimpleXMLElement {#1131} 
    +"guid": "http://blog.website.com/?p=400" 
    +"description": SimpleXMLElement {#953} 
} 

何が問題なのですか?

答えて

関連する問題