My title is showing after the shortcode

My code is like following:

<?php

    function shortcode_callback() {

        ob_start();

        //my code here

        ob_get_clean();

    }

    add_shortcode('shortcode', 'shortcode_callback');

    ?>

The above shortcode add to the page but the tile is showing at the bottom of the shortcode:

My Title

[shortcode]

There is anything wrong doing I am.

Read more here: My title is showing after the shortcode

Leave a Reply

Your email address will not be published. Required fields are marked *