How to Design Your Own Template Page

MPG allows you to create unlimited pages, each with unique content. All you need is a starting point as the basic layout from an existing file for your generated pages, as your own template.

Your template page could be sourced from anything. A post, a page, a product, a portfolio item, or anything that is on your WordPress page.

Many custom plugins create custom entities in your WordPress and each entity has its own design, properties, permissions, styles, etc. So even though MPG is most commonly used for creating pages, you can use it with any entity type you like.

Important note: there’s no need to use another plugin that allows you to specify canonical links or permalinks, like the Yoast plugin. MPG will create permalinks for your pages.

Designing a Template Page

Step 1. Select a Source Type

1.1.   From your WordPress dashboard, click on the ‘MPG: Multiple Pages Generator’ plugin from the side menu. Then click on the ‘Create New +’ option from the MPG menu.

 

1.2.   From the MPG main menu, select the ‘From Scratch’ option.

1.3.   First, type in a name for this project so it will be easier to identify it later. Now you can select the type of content you want as your template for your generated pages from the ‘Entity Type’ drop-down menu. The Entity Type options are: Pages, Posts, Knowledge Base, or Fusion Templates.

 

1.4. Once you select the desired Entity Type, you can select one from the available options that were found:

1.5. Make sure that your source file is not being used elsewhere on the website, as in menus. Since you’ll be replacing certain static data, text, or other elements with MPG shortcodes, the template page loaded from a browser directly will display the shortcodes. In order to avoid this, we urge users to block the page by checking the ‘Add template URL to robots.txt exclusion?’ option.

Click on the "Save changes" button to confirm your selection.

Important note: Elementor and other page builders plugins are supported, though we suggest inserting shortcodes via code/text mode so that shortcode tags don’t get stripped away.

Upload your Source File 

Step 2. Select Source File and URL Generation

Now that your MPG project was created and saved, the following settings will unroll as you scroll down: Source File and URL Generation.

2.1. Upload your spreadsheet as the source file by clicking on ‘Upload File’. Then click on the ‘Browse’ button to find the desired database from your files saved on your computer.   

 

2.2. Scroll down and set up your URLGeneration format by combining the desired text with shortcodes. Then click on the ‘Save Changes’ button.  

Generating Pages From Template

Step 3. Generating pages from created template

3.1. Once the design of your template is complete, scroll up to the top for the next settings steps: Shortcode, Sitemap, and Spintax. Click on the ‘Shortcode’ tab so you can update your newly created template with shortcodes from your source file. 

3.2. Replace any static data with MPG shortcodes. The typical format of an MPG shortcode is {{ mpg_COLUMN-NAME }}. You can also copy the generated shortcodes from your template tab (on the side menu, as your project name), then click on ‘Shortcode’.

You can use MPG shortcodes to insert text, generate links, images, maps, code, videos, quotes, etc. There is really no limitation to elements that can be added to a generated page, as long as the path is specified in the data source file.  

See our Examples category for all use cases. You can go back to your MPG template and see how the generated pages look like by clicking on the URL preview.

Feel free to Contact us if you’re having any issues.

All done!
All done!