Table of Contents

Designing Template Page

You are here:
< All Topics

Your template page could be anything. A post, a page, a product, a portfolio item, or anything that is in your WordPress. Many custom plugins create custom entities in your WordPress and each entity has it’s own design, properties, permissions, styles, etc. MPG is most commonly used for Pages, though you can use it with any entity type you like.

If using Yoast or any other plugin that allows to specify canonical link or permalink – do not use that option. MPG creates permalinks for your pages.

First off, take an existing page that you like your generated pages to be copies of, or make a new one. Make sure this page isn’t used elsewhere on the website, like menus or other pages. You will be replacing certain static data, text, or other elements with MPG shortcodes. If template page is loaded in a browser directly, it will display the shortcodes. Thus, we urge users to block the page in robots.txt.

Elementor and other page builders are supported, though we suggest to insert shortcodes via code/text mode so that shortcode tags aren’t stripped away.

When your design is complete, 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 under MPG > Your template > Shortcode. You can use MPG shortcodes to insert text, generate links, images, maps, code, videos, quotes, etc. There is really no limitation, as long as the path is specified in data source file. See our Examples category for all case uses. Now go back to your MPG template and see how generated pages look like by clicking on URL preview.


All done!
All done!

Search Knowledgebase

Recent Articles