How to call a page template inside a shortcode?

0

I created a short code in a plugin that returns me from the database registered users and now I want it to open a profile view when I click on the name of that user, but I do not know how to create this new page template that will host X content of such user that will be carried by the URL. I tried to add this template inside the plugin folder but besides getting something like " ../wp-content/plugins/meu_plugin/meu_modelo_de_perfil.php ", it goes out of the same theme template using get_header(), get_sidebar(), get_footer() says that the function has not been defined, I do not think it is the right way or complete doing such thing.

    
asked by anonymous 22.05.2018 / 20:17

0 answers