• According to this codex page I can embed do_shortcode into my template file, but when I add the following code, I get a PHP warning…

    code…
    <?php echo do_shortcode('[gallery columns="8" link="file" size="thumbnail" orderby="menu_order" order="ASC"]'); ?>

    Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, ” was given in …/wp-includes/plugin.php on line 170

    Seems I am missing the first parameter of the funtion call_user_function_array(). Only one parameter is shown in the codex, and I even tried the 1st example on that page with the same result.

    Am I missing something?

    Thanks for the help.

The topic ‘do_shortcode produces php warning??’ is closed to new replies.