• Hello,

    I am having a page ‘X’ generated based on a theme ‘A’. Then I have another page ‘Y’ generated based on theme ‘B’. Now I want to display page Y inside Page X.
    So I have written the code

    <div id="ppp" style="position:relative"><?php include("https://bonica.co/wordpress/?page_id=42"); ?>
    </div>

    inside page X. But I receive the following errors.

    Warning: include() [function.include]: https:// wrapper is disabled in the server configuration by allow_url_include=0 in /home/content/70/9464570/html/wordpress/wp-content/themes/bonicanew/landingpage.php on line 57

    Warning: include(https://bonica.co/wordpress/?page_id=42) [function.include]: failed to open stream: no suitable wrapper could be found in /home/content/70/9464570/html/wordpress/wp-content/themes/bonicanew/landingpage.php on line 57

    Warning: include() [function.include]: Failed opening 'https://bonica.co/wordpress/?page_id=42' for inclusion (include_path='.:/usr/local/php5_3/lib/php') in /home/content/70/9464570/html/wordpress/wp-content/themes/bonicanew/landingpage.php on line 57

    Note: Line 57 is


    <div id="ppp" style="position:relative"><?php include("https://bonica.co/wordpress/?page_id=42"); ?>
    </div>

    What would be the reason behind this or is there any other way to integrate this?

Viewing 1 replies (of 1 total)
  • You need to reconfigure your php to make that work – but that is probably not a good idea as you don’t really want to allow URL includes…

    best I can think of is to use an iframe to frame the other site, as you really don’t need to use PHP to include a completely rendered page. For information on the iframe tag go here:

    https://www.w3schools.com/tags/tag_iframe.asp

Viewing 1 replies (of 1 total)
  • The topic ‘Integrating a Template based page into another’ is closed to new replies.