How to Insert Content from One WordPress Page into Another

In the WordPress world, the ability to insert content from one page into another can be very useful for improving the organization and presentation of information. This can be especially beneficial for websites that handle a large amount of content or that wish to reuse information in different sections. Below are several techniques and methods to achieve this.

Using Shortcodes to Embed Content

One of the easiest and most effective ways of inserting content from one page into another is by means of shortcodes. Shortcodes allow you to include dynamic content in your WordPress posts or pages without writing a lot of code.

What is a Shortcode?

A shortcode is a piece of code that WordPress recognizes and executes to display specific content. For example, if you have a page that contains a contact form and you want to display it on another page, you can create a shortcode that represents it.

To create a shortcode, add the following code to the file functions.php of your topic:

function show_contact_form() {
    return do_shortcode('[contact-form-7 id="123" title="Contact form"]');
}
add_shortcode('contact_form', 'show_contact_form');

Then, on any page or entry, simply use [contact_form] to insert the contact form.

Using a Content Insertion Plugin

If you don't feel comfortable editing the code, there are several plugins available that make it easy to insert content between pages. A popular plugin is Insert Pages.

How to Configure the Insert Pages Plugin

To use this plugin, follow these steps:

  • Install and activate the plugin from the WordPress repository.
  • Once activated, you will see a new option in the page editor.
  • Use the shortcode included in the plugin to insert the content of another page.
    How to Insert Content from One WordPress Page into Another
    Download our web maintenance guide Free of charge!
    Free guide for freelancers and small businesses that want to avoid surprises and improve their web performance.

The basic shortcode you can use is the following:

[insert page='name-of-the-page' display='content']

Replaces page-name with the slug of the page you want to insert.

Copy and Paste Content Directly

For those who prefer a more direct approach, it is also possible to copy and paste the content from one page to another. However, this method has its limitations.

Advantages and Disadvantages of Copy and Paste

Advantages Disadvantages
Easy and quick to make. The content is not automatically updated.
No technical knowledge required. May generate duplicate content.

If you decide to follow this method, be sure to review and adjust the content so that it integrates well with the new page.

Using Widgets for Dynamic Content

Another effective way of inserting content from one page into another is by using the widgets. This is especially useful for content that you want to display in various areas of your site, such as sidebars or footers.

How to Add a Text Widget

To insert content through a widget, follow these steps:

  • Go to Appearance > Widgets in your WordPress administration panel.
  • Drag a Text Widget to the desired widget area.
  • Enter the content you want to display.

Widgets are an excellent option for displaying content that does not necessarily need to be in the main flow of the page.

Conclusion

There are multiple methods for inserting content from one WordPress page into another, each with its own advantages and disadvantages. Whether it's shortcodes, plugins, direct copy or widgets, it's important to choose the method that best suits your needs and technical skills. With the right tools and a little creativity, you can optimize the presentation of your content and improve the user experience on your website.