admin管理员组文章数量:1328355
I have created a shortcode to show plugin template through Post When I am Add and view Post its Work well but when I am returning to edit post the page of the editor was not showing there only and a blank page appears.
This is my Shortcode
function show_template($attr)
{
$args = shortcode_atts( array(
'temp' => ''
), $attr );
ob_start();
$temp_id=$args['temp'];
include('lib/show-template.php');
return ob_get_clean();
}
add_action( 'init', 'testing_shortcode' );
function testing_shortcode()
{
add_shortcode( 'thewisher', 'show_template' );
}
本文标签: pluginsShortcode show error while editing post
版权声明:本文标题:plugins - Shortcode show error while editing post 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742259577a2442260.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论