[wp-hackers] shortcodes, BR tags and feed/XML-RPC interfaces

Joseph Scott joseph at josephscott.org
Sat Sep 5 03:40:57 UTC 2009


I would say that the feed should contain the expanded HTML of the
short code and not the raw short code itself.  For XML-RPC though the
raw short code should be returned, not the expanded HTML.

On Fri, Sep 4, 2009 at 9:27 AM, // ravi<ravi-lists at g8o.net> wrote:
> Also, one shortcoming of my quick and dirty trick seems to be that though my
> splendid FancyBox gallery is rendered correctly in the browser, when the
> content is pulled via the feed or XML-RPC the shortcode is left as-is --
> which is understandable I guess since the theme only applies to browser
> rendering. Is this correct? i.e., there is no way for me, in my theme code,
> to enable shortcode expansion for post content for feeds and XML-RPC?
>
> One way to overcome this may be to add an action or filter, which would
> entail (if I am getting it right) the creation of a plugin. I do not want
> the plugin to modify the content as it is saved i.e., I do not want it to
> hook into the post editing function. That would cause the shortcode to be
> expanded/replaced on saving, preventing future edits. I could instead, I
> hope, add a filter that would kick in when the content is accessed
> (irrespective of the reason/means of access, whether it be for rendering in
> browser, or for feed or XML-RPC).
>
> Any suggestions, comments or advice would be great. Thank you,



-- 
Joseph Scott
joseph at josephscott.org
http://josephscott.org/


More information about the wp-hackers mailing list