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


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: