Skip Navigation

Unexpected input when shortcode with ID attribute is rendered using PHP

Open

Reported for: Toolset Views 2.4.1

Symptoms

An unexpected output is obtained when ShortCodes including ID attributes are rendered using PHP wpv_do_shortcode() or do_shortcode().

Workaround

Do not use ShortCodes when you call parent data with PHP, instead use the API to create a custom ShortCode to return the same values or echo the API directly if needed/possible.

One thought on Unexpected input when shortcode with ID attribute is rendered using PHP

Leave
a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>