I have a page with a few buttons, which are generated by a function and displayed through a short-code. I want to link these buttons to wp-content/plugin/nameplugin/detailedPage.php?id=blabla
.
Do I need to create a new function or a new PHP page. And if I need to create a new PHP page, how do I get the header/sidebar/footer from the chosen theme of the Wordpress website?