Jump to content
  • 0

Создание RSS


Spidey
 Share

Question

Прописал RSS в хедере

<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />

Добавил виджет RSS в админке и вывел его. В результате при нажатии на значок RSS получил:

Ошибка разбора XML: синтаксическая ошибка (Строка: 2, Символ: 0)

Обработать документ как HTML
Ошибка:
XML declaration not at beginning of document
Описание:
http://www.w3.org/TR/REC-xml/
1:
2: <?xml version="1.0" encoding="UTF-8"?>
3: <rss version="2.0"
4: xmlns:content="http://purl.org/rss/1.0/modules/content/"
5: xmlns:wfw="http://wellformedweb.org/CommentAPI/"

Вторая строка подсвечена красным. Явно в ней что то не то. Но что и как это исправить ума не приложу?

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy