Title: Shortcode above contect
Last modified: November 10, 2017

---

# Shortcode above contect

 *  [rksmartus](https://wordpress.org/support/users/rksmartus/)
 * (@rksmartus)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/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](https://wordpress.org/support/users/keesiemeijer/)
 * (@keesiemeijer)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/shortcode-above-contect/#post-9670191)
 * Hi rksmartus
 * You have to return the shortcode output. If that doesn’t work post the shortcode
   here.
    [posting code](https://wordpress.org/support/guidelines/#post-code-safely)
    -  This reply was modified 8 years, 4 months ago by [keesiemeijer](https://wordpress.org/support/users/keesiemeijer/).
      Reason: Change link
 *  [Design2code](https://wordpress.org/support/users/design2code/)
 * (@design2code)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/shortcode-above-contect/#post-9674140)
 * 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 8 years, 4 months ago by [Design2code](https://wordpress.org/support/users/design2code/).

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Shortcode above contect’ is closed to new replies.

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 2 replies
 * 3 participants
 * Last reply from: [Design2code](https://wordpress.org/support/users/design2code/)
 * Last activity: [8 years, 4 months ago](https://wordpress.org/support/topic/shortcode-above-contect/#post-9674140)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
