[wp-hackers] execution of shortcode
Jake McMurchie
jake.mcmurchie at googlemail.com
Thu Jun 11 11:39:14 GMT 2009
Excellent. Thanks Simon.
2009/6/11 Simon Wheatley <simon at sweetinteraction.com>:
> 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
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
More information about the wp-hackers
mailing list