WordPress-sivustoni "vimpaimissa" toimivat muut RSS-syötteet, mutta ei sellaiset, joiden pääte on .xml. Esim. seuraava linkki ei toimi:
https://www.viestintavirasto.fi/rss/tietoturvanyt.xml
Jos RSS-syötteen pääte on xml ja laittaa sen vimpaimen riville "Syötä RSS-syötteen osoite", WordPress ilmoittaa:
"Virhe RSS-syötteessä: A feed could not be found at https://www.viestintavirasto.fi/rss/tietoturvanyt.xml. A feed with an invalid mime type may fall victim to this error, or SimplePie was unable to auto-discover it.. Use force_feed() if you are certain this URL is a real feed."
Onkohan jotain pluginia tai koodausta, jolla asian saisi korjattua? Joitain valmiita php-koodauksia löysin netistä, mutta eivät toimineet.
https://www.viestintavirasto.fi/rss/tietoturvanyt.xml
Jos RSS-syötteen pääte on xml ja laittaa sen vimpaimen riville "Syötä RSS-syötteen osoite", WordPress ilmoittaa:
"Virhe RSS-syötteessä: A feed could not be found at https://www.viestintavirasto.fi/rss/tietoturvanyt.xml. A feed with an invalid mime type may fall victim to this error, or SimplePie was unable to auto-discover it.. Use force_feed() if you are certain this URL is a real feed."
Onkohan jotain pluginia tai koodausta, jolla asian saisi korjattua? Joitain valmiita php-koodauksia löysin netistä, mutta eivät toimineet.
Vastaukset 1
Vanhimmat
oletko kokeillut laittaa koodiisi: $feed->force_feed(true);