WPBeginner

Beginner's Guide for WordPress

  • Blog
    • Beginners Guide
    • News
    • Opinion
    • Showcase
    • Themes
    • Tutorials
    • WordPress Plugins
  • Start Here
    • How to Start a Blog
    • Create a Website
    • Start an Online Store
    • Best Website Builder
    • Email Marketing
    • WordPress Hosting
    • Business Name Ideas
  • Deals
    • Bluehost Coupon
    • SiteGround Coupon
    • WP Engine Coupon
    • HostGator Coupon
    • Domain.com Coupon
    • Constant Contact
    • View All Deals »
  • Glossary
  • Videos
  • Products
X
☰
Beginner's Guide for WordPress / Start your WordPress Blog in minutes
Choosing the Best
WordPress Hosting
How to Easily
Install WordPress
Recommended
WordPress Plugins
View all Guides

WPBeginner» Blog» Plugins» How to Insert WordPress Page Content to Another Page or Post

How to Insert WordPress Page Content to Another Page or Post

Last updated on September 4th, 2014 by Editorial Staff
33 Shares
Share
Tweet
Share
Pin
Free WordPress Video Tutorials on YouTube by WPBeginner
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. In this article, we will show you how to insert content from one WordPress page to another post, page, or any custom post types.

First thing you need to do is install and activate the Insert Pages plugin. Upon activation simply go to Posts » Add New to see it in action.

If you use visual editor, then you will notice a new button labeled ‘Insert Page’ in the menu.

Insert page button in the visual editor

Clicking on it will bring up a popup where you can select the page, post, or custom post type you want to add.

Insert page popup

You can choose how you would like to insert the post/page by clicking on the Options. By default you can add title, content, link, or choose a custom template. We will explain custom templates later in this article.

After choosing the post/page click on the Insert Page button. The plugin will add the shortcode required to display your selected post/page.

If you use the text editor to write your posts, then you can manually enter the shortcode. The shortcode parameters are quite simple.

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

The page parameter for the shortcode accepts page-slug or ID. Please note that by page slug, it doesn’t mean that you can only enter pages. You can add any post or custom post type’s slug as well.

You can also use post id. Here is a quick guide on how to find post id in WordPress.


[insert page='author-syed-balkhi' display='content']
[insert page='128' display='content']
[insert page='128' display='all']
[insert page='128' display='custom-author.php']

Adding Custom Post Types into Posts

Using WordPress you can add any type of content by creating post types for different content types. Checkout our guides on when do you need a custom post type and how to create a custom post type in WordPress.

Insert Pages allows you to add your custom post types into posts and pages. For example, you can create a custom post type for image galleries and then use Insert Pages to add those galleries into your posts or pages.

A custom gallery post type added into a WordPress post

Similarly, you can create custom post types for videos, portfolio, client testimonials, etc. to add into your pages or posts.

Using Custom Templates to Display Inserted Pages

Insert Pages allows you to display title, link, content, or all fields for inserted pages. However some users may still need to tweak the display to meet their own needs. This can be achieved by using custom templates.

All you need to do is create a blank php file and upload it to your theme directory. You can name the file anything you want. For example, custom-author.php.

This custom template works exactly like any other content template files in your theme. Here is sample template file that we created to display author pages.

<?php the_post(); ?>
<h3 class="author-name"><?php the_title(); ?></h3>
<?php if ( has_post_thumbnail() ) : ?>
<div class="author-thumbnail">
<?php the_post_thumbnail(); ?>
</div>
<?php endif; ?>
<div class="author-bio">
<?php the_content() ?>
</div>

You can use custom CSS classes in your template file and then style them in your theme’s stylesheet. We used this to style the display of author pages.


h3.author-name { 
font-size:16px;
}
.author-thumbnail { 
float:left;
padding:10px;
} 
.author-bio { 
font-style:italic; 
font-family: Lora, Georgia, Serif;
} 

This is how the end result looked on our dummy site:

Author bio page inserted into a WordPress post

We hope this article helped you add content from one WordPress page/post to another.

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

33 Shares
Share
Tweet
Share
Pin
Popular on WPBeginner Right Now!
  • How to Properly Move Your Blog from WordPress.com to WordPress.org

  • Revealed: Why Building an Email List is so Important Today (6 Reasons)

    Revealed: Why Building an Email List is so Important Today (6 Reasons)

  • Google Analytics in WordPress

    How to Install Google Analytics in WordPress for Beginners

  • Checklist

    Checklist: 15 Things You MUST DO Before Changing WordPress Themes

About the Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi. Trusted by over 1.3 million readers worldwide.

The Ultimate WordPress Toolkit

22 Comments

Leave a Reply
  1. Philip L Franckel says:
    Mar 17, 2019 at 9:33 pm

    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?

    Reply
    • WPBeginner Support says:
      Mar 19, 2019 at 1:31 pm

      The plugin shouldn’t slow down your site.

      Reply
  2. Bobby says:
    Aug 4, 2018 at 3:31 am

    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?

    Reply
  3. Vico says:
    Jul 26, 2018 at 7:07 pm

    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…?

    Reply
  4. Veerapandi says:
    Jul 25, 2018 at 5:48 am

    My WordPress add page in not visible for CPT editor…..

    Reply
  5. Uriy says:
    Apr 4, 2017 at 1:43 am

    Hello. How to insert product categories woocommerce ? Sorry my English

    Reply
  6. Jason says:
    Jul 7, 2016 at 6:49 pm

    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.

    Reply
  7. abhay says:
    Jan 1, 2016 at 2:55 am

    using duplicate content will harm my SEO raking ..

    Reply
  8. Mr David says:
    Oct 6, 2015 at 1:08 am

    please is it possible to add another website blog page to your own website?

    Reply
  9. Michael says:
    Sep 9, 2015 at 6:33 pm

    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.

    Reply
  10. Whit Wright says:
    Sep 8, 2015 at 11:21 am

    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!

    Reply
  11. Sam says:
    Jun 2, 2015 at 4:48 pm

    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.

    Reply
  12. WPBeginner Staff says:
    Sep 4, 2014 at 8:23 pm

    Thank you for notifying us. We have fixed the link.

    Reply
  13. WPBeginner Staff says:
    Sep 4, 2014 at 8:15 pm

    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.

    Reply
    • mc says:
      Sep 5, 2014 at 12:50 am

      oooh…thanks for the clarification!

      Reply
  14. mc says:
    Sep 4, 2014 at 8:06 am

    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?

    Reply
  15. WPBeginner Staff says:
    Sep 3, 2014 at 3:20 pm

    Yes, you can do this by creating a custom template and using the_excerpt instead of the_content in your WordPress loop.

    Reply
  16. Mo says:
    Sep 2, 2014 at 3:35 am

    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

    Reply
  17. BobM says:
    Sep 1, 2014 at 2:27 pm

    Hi,

    Just letting you know your ‘Insert Pages plugin’ seems to be going to a 404 page…

    Reply
    • Jarkko Saltiola says:
      Sep 29, 2017 at 4:54 am

      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.

      Reply
  18. Don Avant says:
    Sep 1, 2014 at 11:39 am

    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…

    Reply
    • Chrymo says:
      Jan 17, 2016 at 1:25 am

      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.

      Reply

Leave a Reply Cancel 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.

Over 1,320,000+ Readers

Get fresh content from WPBeginner

Featured WordPress Plugin
WP Mail SMTP logo
WP Mail SMTP
Fix WordPress email delivery issues. #1 SMTP plugin. Learn More »
How to Start a Blog How to Start a Blog
I need help with ...
Starting a
Blog
WordPress
Performance
WordPress
Security
WordPress
SEO
WordPress
Errors
Building an
Online Store
Useful WordPress Guides
    • 7 Best WordPress Backup Plugins Compared (Pros and Cons)
    • How to Fix the Error Establishing a Database Connection in WordPress
    • Why You Need a CDN for your WordPress Blog? [Infographic]
    • 30 Legit Ways to Make Money Online Blogging with WordPress
    • Self Hosted WordPress.org vs. Free WordPress.com [Infograph]
    • Free Recording: WordPress Workshop for Beginners
    • 24 Must Have WordPress Plugins for Business Websites
    • How to Properly Move Your Blog from WordPress.com to WordPress.org
    • 5 Best Contact Form Plugins for WordPress Compared
    • Which is the Best WordPress Popup Plugin? (Comparison)
    • Best WooCommerce Hosting in 2020 (Comparison)
    • How to Fix the Internal Server Error in WordPress
    • How to Install WordPress - Complete WordPress Installation Tutorial
    • Why You Should Start Building an Email List Right Away
    • How to Properly Move WordPress to a New Domain Without Losing SEO
    • How to Choose the Best WordPress Hosting for Your Website
    • How to Choose the Best Blogging Platform (Comparison)
    • WordPress Tutorials - 200+ Step by Step WordPress Tutorials
    • 5 Best WordPress Ecommerce Plugins Compared
    • 5 Best WordPress Membership Plugins (Compared)
    • 7 Best Email Marketing Services for Small Business (2020)
    • How to Choose the Best Domain Registrar (Compared)
    • The Truth About Shared WordPress Web Hosting
    • When Do You Really Need Managed WordPress Hosting?
    • 5 Best Drag and Drop WordPress Page Builders Compared
    • How to Switch from Blogger to WordPress without Losing Google Rankings
    • How to Properly Switch From Wix to WordPress (Step by Step)
    • How to Properly Move from Weebly to WordPress (Step by Step)
    • Do You Really Need a VPS? Best WordPress VPS Hosting Compared
    • How to Properly Move from Squarespace to WordPress
    • How to Register a Domain Name (+ tip to get it for FREE)
    • HostGator Review - An Honest Look at Speed & Uptime (2020)
    • SiteGround Reviews from 4196 Users & Our Experts (2020)
    • Bluehost Review from Real Users + Performance Stats (2020)
    • How Much Does It Really Cost to Build a WordPress Website?
    • How to Create an Email Newsletter the RIGHT WAY (Step by Step)
    • Free Business Name Generator (A.I Powered)
    • How to Create a Free Business Email Address in 5 Minutes (Step by Step)
    • How to Install Google Analytics in WordPress for Beginners
    • How to Move WordPress to a New Host or Server With No Downtime
    • Why is WordPress Free? What are the Costs? What is the Catch?
    • How to Make a Website in 2020 – Step by Step Guide
Deals & Coupons (view all)
MainWP
MainWP Coupon
Get 15% OFF on MainWP WordPress multisite manager plugin.
Web Hosting Hub
Web Hosting Hub Coupon
Get 44% off Web Hosting Hub hosting plans.
Featured In
About WPBeginner®

WPBeginner is a free WordPress resource site for Beginners. WPBeginner was founded in July 2009 by Syed Balkhi. The main goal of this site is to provide quality tips, tricks, hacks, and other WordPress resources that allows WordPress beginners to improve their site(s).
Join our team: We are Hiring!

Site Links
  • About Us
  • Contact Us
  • FTC Disclosure
  • Privacy Policy
  • Terms of Service
  • Free Blog Setup
  • Free Business Tools
Our Sites
  • OptinMonster
  • MonsterInsights
  • WPForms
  • SeedProd
  • Nameboy
  • RafflePress
  • Smash Balloon

Copyright © 2009 - 2021 WPBeginner LLC. All Rights Reserved. WPBeginner® is a registered trademark.

Managed by Awesome Motive | WordPress hosting by SiteGround | WordPress CDN by MaxCDN | WordPress Security by Sucuri.