Integration of external pages in WordPress site

It is possible at some point to use certain pages made outside of WordPress, but on the same site, so that they can be rendered through their own link.

Thus, a somewhat comfortable option is to create a template page, within which to use the Include option, considering how the link relates to the path defined by WordPress.

* Template Name: Aplicatie
<?php include($_SERVER['DOCUMENT_ROOT']."/aplic/conta/index.php"); ?>

You may need that comment in the Template Name to be able to easily identify inside a page.

Also, if you want the visibility of the WordPress toolbar, you can insert, at the end, the circled row: <?php wp_footer(); ?>. However, if the embedded page has a menu, the WordPress bar may cover it.

Author: Ovidiu.S

I am quite passionate about this professional area as if I know something - no matter how little - I want to share it with others.

Leave a Reply