[wp-hackers] execution of shortcode

Jake McMurchie jake.mcmurchie at googlemail.com
Thu Jun 11 08:48:00 GMT 2009


Hi.

I have this in my functions.php:

add_shortcode('ataglance', 'ataglance_function');
function ataglance_function() {
?>
<table>
<!-- // generate table from xml file -->
</table>
<?php
}

And this in my page:

test copy

[ataglance]

However, the page output is

<table>...</table>
test copy

How can I make sure the code is executed in order?

Thanks in advance.

Jake


More information about the wp-hackers mailing list