Beginner's Guide for WordPress / Start your WordPress Blog in minutes

How to Insert WordPress Page Content to Another Page or Post

Recently one of our users asked if it was possible to add content from a WordPress page into another post or page.

Inserting page content can help save you time when doing content updates, and it also makes it easy to create custom layouts in your pages and posts.

In this article, we’ll show you how to insert page content into your posts and pages in WordPress.

How to insert WordPress page content into another page or post

Why Embed Page Content into Other WordPress Pages and Posts?

Embedding page content into other pages and posts in WordPress can save you time when updating content.

Instead of updating every page, you can simply edit one page, and it will update the content wherever it’s embedded in your WordPress website.

Beyond saving time during content updates, it also lets you create custom pages and layouts easily.

Embedding page content can be a simple way to create galleries, highlight testimonials, add a portfolio, feature videos, and more.

That being said, let’s show you how to insert page content into another page or post in WordPress.

Adding WordPress Page Content into Pages and Posts

The simplest way to insert WordPress page content into your site is by using the Insert Pages plugin. It lets you easily add custom page content into your WordPress blog posts and pages.

First thing you need to do is install and activate the plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, you need to open up the post or page where you want to embed page content.

Click add block for page content

After that, click the ‘Plus’ add block icon and search for ‘Insert Pages’.

Then, click on the ‘Insert Page’ block.

Select insert page block

Next, you can choose the page you want to embed in the menu on the right hand side of the page.

Simply enter the page URL, or search for the page in the ‘Insert Page’ section.

Enter page or post URL to display

After that, you can fully customize how the page will display in the ‘Settings’ section.

Simply select how you want the page content to display from the ‘Display’ drop down. You can display the post title, link, thumbnail, excerpt, or even the entire page content.

Select page or post display options

You can also add custom CSS, choose to have your page content inline, and even hide pages based on user permissions.

Once you’re finished customizing your page or post, make sure to click the ‘Update’ or ‘Publish’ button to save your changes.

If you selected the ‘All (includes custom fields)’ display option, then here’s how it will look to your visitors.

Embedded page content example

In this example, we added a simple team bio to our blog post above the content.

Using Shortcodes to Add Page Content in WordPress

If you don’t want to use included block, then you can use shortcodes to embed page content into your pages and posts.

The plugin has shortcode parameters that let you customize the exact page content you want to display.

[insert page='page-slug|ID' display='title|link|content|all|custom-template.php']

In the shortcode above, you need to replace the ’page-slug|ID’ with your page or post slug or the post ID. To find the post ID, see our guide on how to find IDs in WordPress.

You also need to change ‘title|link|content|all|custom-template.php’ to the type of page content you want to display.

For example, the shortcode below will display a page with the ID of ‘128’ and only the page ‘content’.

[insert page='128' display='content']

To add the shortcode, open up the post or page you want to edit, click the ‘Plus’ add block icon, and search for the ‘Shortcode’ block.

Then, click on ‘Shortcode’ to add it to your site.

Add new shortcode block

Next, add the shortcode to the shortcode block on your page.

Enter page shortcode

Make sure to click the ‘Update’ or ‘Publish’ button to save your changes.

Here’s how it will look to your visitors:

Add page content shortcode example

Adding Custom Post Types into WordPress Posts and Pages

If you’re using custom post types to organize your website content, then you can add these to your posts and pages too.

For example, you can create a custom post type for your image galleries, videos, testimonials, portfolio items, and more.

For more details, see our guide on how to create custom post types in WordPress.

After you’ve added your custom post type to WordPress, simply go to the page or post that you want to edit. Then, you can add your pages with the custom post type following the same steps as above.

Here’s an example of a page with multiple pages embedded using the ‘Books’ custom post type. Each title and thumbnail will take the visitor to a page for that book.

Custom post type books example

Using Custom Templates to Display Inserted Pages

The Insert Pages plugin also lets you customize how your inserted pages will display by creating a custom page template. This works similar to other page templates supported by your WordPress theme.

Note: This method is more advanced since it requires you to edit theme files and copy and paste code.

If you haven’t done this before, then see our beginner’s guide to pasting snippets from the web into WordPress.

We also recommend creating a WordPress backup, so you can restore your website if anything goes wrong. For more details, see our guide on how to backup and restore your WordPress site with UpdraftPlus.

After that, you can start creating your own custom page template.

First, open up a plain text editor like Notepad and name your file. It can be anything you want, like custom-page-template.php.

Then, paste the following code into the blank file:

<?php
/**
 * Template Name: Custom page template
 */
?>
 
<div id="your-wrapper-div">
  <?php while ( have_posts() ) : the_post(); ?>
    <div id="your-container-div-for-each-post">
      <?php the_content(); ?>
      <?php the_post_thumbnail(); ?>
    </div>
  <?php endwhile; ?>
</div>

The code snippet above is a very basic template and can be fully customized to your needs.

Once you’re done customizing your template, you need to connect to your website via FTP or your WordPress hosting file manager, and then upload the file to your WordPress theme folder. For more details, see our beginner’s guide on how to use FTP to upload files to WordPress.

Next, you need to open up the page or post where you want to use your custom template.

After that, select ‘Use a custom template’ from the ‘Display’ drop down and enter the name of your custom template in the ‘Custom Template Filename’ box.

Select use custom template

After you’re finished, make sure to click ‘Update’ or ‘Publish’ to make it live.

We hope this article helped you learn how to insert WordPress page content into another post or page. You may also want to see our guide on how to choose the best business phone services and our expert picks of the best AI chatbot software for your website.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit – a collection of WordPress related products and resources that every professional should have!

Reader Interactions

22 CommentsLeave a Reply

  1. I would like to use this to add contact info and a photo, like the author box, at the bottom of every page so I can update one page and automatically update all other pages. Will this plugin slow down my site?

  2. Hi, I added the plugin & the code. It worked. but for example, when I have content in page2 and wanna copy the page1’s content in it, it doesn’t work.
    What should I do?

  3. I have a question:
    If I create a Page and display Post now I will have 2 identical contents: 1 for the page and the other in the post…Won´t that be duplicate content…?

  4. I am trying to use the insert page plugin but get two random issues.
    1. It doesn’t update the author. I created the post but switched it to someone else but when the plugin is enabled it continues to show me as the author and when I deactivate the plugin the author shows who I selected it to be.

    2. the plugin seems to disable the commenting system. When the plugin is enabled the comments do not show and when it is disabled they come back.

  5. Thanks for this great work.

    <Request: I use the default post type of WP to create my content, before I know about custom post type. Now, I would like to move Movie to the movie custom post section from the default, how can I do this or can I get a link to the tutorial you have that covers this.
    Hope to hear from you, thanks.

  6. I have to add six separate posts to a collaborative WordPress.com blog for a school assignment. I already created the post in my own WordPress.com account, but I do not know how to transfer that post to the other blog. I tried a few options, but I am stuck. I Exported my post from my blog, but I do not see a way to Import it into the other blog. I also tried to install and use the “Insert Pages: plugin, but, according to this post, I cannot use that plugin unless I transfer my site to WordPress.org. Does anyone have any suggestions?

    Thank you!

  7. Thanks for sharing this! I think this is just what I need to create author bios at the bottom of my posts without the security risks of adding new users.

  8. You can do this and if that serves the purpose. This method is more useful when you want to manage the contents of one page separately so that when you update that page the change appears on other posts/page where you have added it.

  9. I’m not sure I understand why you couldn’t just copy and paste the text from one page into the new page.(and manually update any page links) … Would you use this if you wanted to keep the format/layout of the original page? Am I misunderstanding the question?

  10. Hi,

    Can you display a certain number of words rather then the full page and with a link to the full page?

    Thanks for sharing the infos on this plugin, can be very useful :)

    Mo

    • Discussed plugin seems to be off from official repository but I found this plugin from Github github.com/uhm-coe/insert-pages. Just hit “Clone or Download” and “Download ZIP”, then upload the zip file and install.

  11. Or I could just open both pages/posts and copy and paste…Simpler, I don’t to download and install a plugin and I already know how to do this…

    • In some cases, when you create a custom page template just for one particular page but only allow a simpler page for edits of the content area.

      I.e. target page has all the bells and whistles you dont want to frequently edit. But a part of that page you want to have someone edit for you. You use the trick above so others can edit that content but not your layout for one particular page.

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.