Support » Plugin: Exec-PHP » Conflict with RSS Feed

  • Resolved askolo


    Exec php is a great plugin, however, I struggle to make my RSS feed work… ( I modified the RSS feed by including “pages” as I use this format quite a lot by adding the following code to my template:

    // Add Pages to RSS Feeds
    function myfeed_request($qv) {
        if (isset($qv['feed']) && !isset($qv['post_type']))
            $qv['post_type'] = array('post', 'page');
        return $qv;
    add_filter('request', 'myfeed_request');

    When trying to check the feed with

    I get an error message which is: line 43, column 0: XML parsing error: <unknown>:43:1: unclosed CDATA section

    Does someone has an Idea? I precise that I deactivated all plugins and as I reactivated them one by one, realized that this conflict was caused by Exec php plugin.

    Any help will MORE than appreciated!! Thanks a lot 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • This might help too…
    I made several tests, modifications… I published a new “page” and the issue is always in the feed loop.
    The first “post” is ok, I get:

    <pubDate>Sun, 18 Aug 2013 08:35:58 +0000</pubDate>
    <guid isPermaLink="false"></guid>
    <description><![CDATA[Visitez l’une des villes principales et des plus jolies villes d’Ecosse grâce à une sélection d’offres que vous trouverez ci-dessous et tombez amoureux de cette ville fière de ses traditions et ancrée dans l’histoire.
    The Royal ...]]></description>

    but every time, when parsing the second <item> I get the “unclosed CDATA section”.

    Is there a hook I could use in my function.php file to solve that?

    Probleme resolved: the bug was caused by an include and not an include_once messing up the xml feed whilst working fine on the html part…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Conflict with RSS Feed’ is closed to new replies.