Shortcode always displaying at the top of the page-wordpress plugin
In this post we will show you Shortcode always displaying at the top of the page in wordpress plugin, hear for Shortcode always displaying at the top of the page in wordpress plugin we will give you demo and example for implement.
solution of Shortcode always displaying at the top of the page for ordpress plugin
it is give solution of Shortcode is always displaying at the top of the page for ordpress plugin. hear we add ob_start();
and return ob_get_clean();
befour start end eand of function.
<?php /* * Plugin Name: onlinecode plugin * Version: 1.0.1 * Description: It will diaply all onlinecode plugin. enjoy 🙂 * Author: onlinecode org * Author URI: * Plugin URI: * Text Domain: onlinecode-plugin * Domain Path: /onlinecode * License: * License URI: */ add_shortcode('onlinecode-plugin', 'get_onlinecode'); function get_onlinecode( $atts, $content = null ) { ob_start(); ?> <strong>welcome to onlinecode</strong> <p> This is an include for <b>Shortcode is always displaying at the top of the page in wordpress plugin</b>. </p> <?php return ob_get_clean(); } // end get_onlinecode
Hope this code and post will helped you for implement Shortcode always displaying at the top of the page in wordpress plugin. if you need any help or any feedback give it in comment section or you have good idea about this post you can give it comment section. Your comment will help us for help you more and improve onlincode. we will give you this type of more interesting post in featured also so, For more interesting post and code Keep reading our blogs onlincode.org