[wp-hackers] execution of shortcode

Simon Wheatley simon at sweetinteraction.com
Thu Jun 11 09:58:36 GMT 2009


On Thu, Jun 11, 2009 at 9:48 AM, Jake
McMurchie<jake.mcmurchie at googlemail.com> wrote:
> I have this in my functions.php:
>
> add_shortcode('ataglance', 'ataglance_function');
> function ataglance_function() {
> ?>
> <table>
> <!-- // generate table from xml file -->
> </table>
> <?php
> }
>

Your function needs to *return* not echo the HTML.

S


---
Sweet Interaction Ltd is Registered in England/Wales, no. 6610741
Registered office: 7 Malton Av, Manchester, M21 8AT


More information about the wp-hackers mailing list