• Resolved jakemc

    (@jakemc)


    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 (from the_content) is

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

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

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘shortcode executed before content’ is closed to new replies.