Support » Developing with WordPress » Shortcode above contect

  • Hi, why my shortcode of easytimetable always BEFORE all content? How can i display it where I want? I tried to change from echo,print to return but im not coding much so can u help me?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator keesiemeijer

    (@keesiemeijer)

    moderator

    Hi rksmartus

    You have to return the shortcode output. If that doesn’t work post the shortcode here.
    posting code

    • This reply was modified 1 month, 1 week ago by  keesiemeijer. Reason: Change link
    Design2code

    (@design2code)

    Hi rksmartus

    Keesiemeijer is correct, I think i’ll just add to that with an example to return the shortcode.

    <?php 
    $display = '';
    $display .= 'information you wish to return, this can also be form fields and so on';
    $display .= 'another line with more information like a header <h2>Title</h2>';
    return $display;
    ?>

    Hope this helps

    • This reply was modified 1 month ago by  Design2code.
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.