• Resolved philcole

    (@philcole)


    Hi there,

    I’ve just noticed that a page I have which uses Posts in Page has stopped working after the recent update. I’m thinking this may be down to the vulnerability fix that was done. The shortcode I’m using pulls in posts by id which is still working fine and then applies a template.

    it is the template= part of the shortcode that has stopped working. I’m pulling in 14 specific posts and each has one image file.

    Is there any reason why this would have happened – do I need to make any changes to the template= element of the shortcode following the update?

    Many thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Eric Amundson

    (@sewmyheadon)

    Hello @philcole,

    Thanks for posting this. I’ve not seen any problems so far, but will do some research and get back to you shortly.

    One question: where, exactly does your template file reside? Root of theme folder? Another directory?

    Thanks,
    Eric

    Plugin Author Eric Amundson

    (@sewmyheadon)

    Hi @philcole,

    This is something we tested before the latest release and I’ve just re-confirmed that using the custom template works.

    The ‘fix’ to the security vulnerability that we recently patched was to add code that insists that all references to custom templates for Posts in Page must exist in the theme’s main folder.

    So, if you’ve placed your file in a sub-folder, or different location, try moving it to the root of the theme folder and adjusting your shortcode.

    Let me know if that helps.

    Eric

    Thread Starter philcole

    (@philcole)

    Hi Eric,

    Yep great that’s the one, I had a folder called temlplate-parts in the theme folder and a template called “posts_loop_template_committee.php” in that folder. Moving the template file back into the theme folder kicked it back into life.

    Many thanks
    Phil

    Plugin Author Eric Amundson

    (@sewmyheadon)

    Lovely. Glad to hear it, Phil. Sorry for the break – it was necessary to tighten security.

    Cheers and thanks!

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

The topic ‘Template has stopped working’ is closed to new replies.