How to set featured image for generated posts

MPG plugin allows you to set featured images for the generated posts or pages. To achieve this it's needed to have the data (URLs of images) in your source file.

Source file

To set featured images MPG looks in your source file for a column named as featured_image, in that column there should be an URL of an image stored online that will be used as a featured image for each generated post page. Example:

featured_image_alt Column:
This column is used to assign the "alt text" for the featured image. If you add this column and include alt text values, MPG will automatically set these values as the "alt" attribute for each featured image. Alt text is essential for accessibility and can also help with SEO.

Additionally, you can reference other columns dynamically within the featured_image_alt values. Simply use the dynamic variable format {{mpg_<column name>}} to pull in values from other columns. For example, if you have a column named "location," you can set an alt text value like Beautiful scenery in {{mpg_location}} to dynamically generate context-rich alt text for each image.

📝 Note: Please keep in mind that your theme might not show featured images on pages or posts, it means that dynamically generated pages by MPG won't have featured images as well, even if they exist in the source file. If you're not sure, first test example physical pages that have featured images attached to confirm that your theme shows featured images on single posts/pages. doc.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us