• Resolved kahana82

    (@kahana82)


    Hi, great plugin, but I’m having some issues with shortcodes.
    I’m using the RSS feed for events where the content is a shortcode to get and display content on the frontend.

    The RSS content for each event in the feed looks like this:
    <content:encoded>
    <![CDATA[
    Mar 13-Dec 24, 2017 [promotion slug=’2017-03-produits-dentretien-roesch’]
    ]]>
    </content:encoded>

    As you can see the shortcode does not get parsed…
    Is there any way to solove this ?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter kahana82

    (@kahana82)

    I managed to get the shortcode parsed (bold) inb the feed.php include file:

    <description>'.esc_attr($this->format_date($event->start_date, $event->end_date).' '.
    						('' != $event->time ? $event->time : '').('' != $event->location ? ' - '.$event->location : '')).'</description>
    				'.('' != $event->details ?
    						'<content:encoded><![CDATA['.esc_attr($this->format_date($event->start_date, $event->end_date).' '.
    						('' != $event->time ? $event->time : '').('' != $event->location ? ' - '.$event->location : '')).
    						do_shortcode($event->details).']]></content:encoded>' : '').'
    
    			</item>';

    changed: $event->details
    to: do_shortcode($event->details)

    +1

    Plugin Author mibuthu

    (@mibuthu)

    will be fixed in the next version 0.7.10

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Shortcodes in RSS content’ is closed to new replies.