• Resolved fonsiwp

    (@fonsiwp)


    Hello,

    I’ve created my Google Sheet with all the correct columns and corresponding values. I’ve also set up the template to use those variables, but I’ve run into a small issue.

    The template is rendering variables that don’t match the ones defined in my spreadsheet. For example, I have a column named city, so I expect to use {{mpg_city}} in the template. However, the template is displaying {{mpg_h1}} instead, which breaks the expected behavior and is currently preventing me from using the plugin properly.

    I’ve double-checked everything several times and everything seems to be configured correctly.
    Any idea what might be causing this?

    Thanks in advance for your help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter fonsiwp

    (@fonsiwp)

    Hello again,

    The issue was that I was using {{mpg_url}} inside my template, thinking it was a regular dynamic variable from my spreadsheet. However, mpg_url is possibly a reserved variable in Multi Page Generator .

    By using it in the content of the template, it caused rendering problems and prevented other variables like {{mpg_city}} or {{mpg_h1}} from showing properly.

    Solution: I renamed the column in my spreadsheet from url to something else (like slug), updated the template accordingly (using {{mpg_page_slug}}), and everything started working perfectly.

    Hope this helps others avoid this small but tricky issue!

    Plugin Support Poonam Namdev

    (@poonam9)

    Hi @fonsiwp,

    Yes, you’re absolutely right — {{mpg_url}} is a reserved variable in Multi Page Generator, as it’s used internally to handle page URLs. Using it in your template/source file can indeed cause conflicts and prevent other variables from rendering properly.

    Great job identifying the issue and sharing the solution — renaming it to something like slug is exactly the right approach. This will definitely help others avoid the same confusion!

    Thread Starter fonsiwp

    (@fonsiwp)

    Thank you for your great plugin 😉

    Plugin Support rodicaelena

    (@rodicaelena)

    Hi @fonsiwp,

    Thank you very much for your kind words 🙂 In case you have a couple of minutes, and want to share that as a review here https://ww.wp.xz.cn/support/plugin/multiple-pages-generator-by-porthas/reviews/#new-post, we would appreciate it very much.

    Thank you for considering this.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Wrong columns’ is closed to new replies.