Skip to content

Incorporate any page from an exterior site and keep your site's header and footer.

License

Notifications You must be signed in to change notification settings

maldersIO/include-any-page

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

# Include Any Page



Usage:

Pass the entire output of any URL into the content of any page by adding [inlude_any_page url="example.com"]. Depending on the theme, a custom page template may be needed if you wish to wrap the external content in the site's header and footer.

Use the following as the page template in a new .php file, and add to your theme or child theme root:

<?php
/**
* Template Name: New Page Template Name
*/
?>
<?php get_header(); ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php the_content(); ?>
<?php endwhile; ?>
<?php endif; ?>
<?php get_footer(); ?>

About

Incorporate any page from an exterior site and keep your site's header and footer.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages