I can control the custom template to be used on custom post type pages but the template file would still need to have the markup of the theme. I was wondering if I could make it theme independent?
Example: I have a plugin that registers my custom post type. I have the post meta info that I want to show in a custom template. I have that template working on my custom post type pages but the max I could do is to use get_header() & get_footer() calls but I can’t deal out the need of having the theme markup between header & footer.
Did that make any sense? Any ideas?
I have got it working by the following code:
Feel free to comment on any suggestions.