WordPress.org

Forums

Produce of a WordPress post (1 post)

  1. vietnt.vn
    Member
    Posted 1 year ago #

    Hi,

    In WordPress rss feed, an item is described as:

    <item>
    <title>Hello world!</title>
    <link>http://localhost/web-wp/?p=1</link>
    <comments>http://localhost/web-wp/?p=1#comments</comments>
    <pubDate>Mon, 05 Mar 2012 07:37:40 +0000</pubDate>
    <dc:creator>admin</dc:creator>
    <category><![CDATA[Uncategorized]]></category>

    <guid isPermaLink="false">http://localhost/web-wp/?p=1</guid>
    <description><![CDATA[Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!]]></description>
    <content:encoded><![CDATA[<p>Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!</p>]]></content:encoded>
    <wfw:commentRss>http://localhost/web-wp/?feed=rss2&p=1</wfw:commentRss>
    <slash:comments>1</slash:comments>
    </item>

    has a field:

    <content:encoded><![CDATA[<p>Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!</p>]]></content:encoded>

    It's the content of the post without comments.

    My expectation is producing the
    <content:encoded>
    of a post without accessing to rss feed. For example, if I have a post with url
    http://localhost/web-wp/?p=4
    then I can get the
    <content:encoded>
    of this post via url
    http://localhost/web-wp/?p=4&content_encode=1

    How can I do it? Thank you

Topic Closed

This topic has been closed to new replies.

About this Topic