Support » Themes and Templates » Insert code after content but before plugins

Insert code after content but before plugins

  • Hi

    I browsed through lots of posts, and found partial solution, but not complete.

    Some of the plugins I used insert their function just below post content, but I can’t place any of my code prior some plugins.

    I used this
    to create function in functions.php and the function itself work when I place shortcode in the text of the post. But I want it to work without placing the shortcode everytime in post.

    Is there posibility to place shortcode or something inside content-single.php code?

    Any code I place before this line

    <?php the_content( __( 'Continue →', 'yoko') ); ?>

    is just where I want it to be, but if I put code just behind


    <?php the_content( __( 'Continue →', 'yoko') ); ?><div class="clear">TEST</div>

    it is displayed after several plugins, and I can’t seem to get in front of them. Somehow those plugins manage to insert their code jast before my div element

  • The topic ‘Insert code after content but before plugins’ is closed to new replies.