Thursday, 8 August 2013

add custom template from wordpress plugin add_shortcode function

add custom template from wordpress plugin add_shortcode function

I am trying to show some date from database but i don't want to load
default template of wordpress.
add_shortcode('short_code','custom_page');
here i want custom_page will be displayed in my plugin directory template
page, it will not load default template of WordPress. I had created my
custom template for that plugin i want that one to display data.
actually i want to load page without header footer. it is in plugin
directory template.
and also want to create a page when plugin loaded. like When i am
activating a plugin some page will be added in WordPress that is in plugin
with plugin template not in WordPress template.

No comments:

Post a Comment