• Resolved paulhyland

    (@paulhyland)


    I updated this plugin on my staging site, and now it stopped displaying any details of the posts it lists. Now it just shows a bulleted list of post titles.

    Luckily I did this on staging first.

    Shortcode used: [catlist post_type=”blogs” numberposts=3 pagination=yes]

    Page should look like: https://higher.digital/news/ (ver 0.72)

    After update: http://165.994.myftpupload.com/news/ (updated to 0.75.2)

    • This topic was modified 8 years, 4 months ago by paulhyland.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Contributor zymeth25

    (@zymeth25)

    Hello @paulhyland

    Are you absolutely sure both websites use the same shortcode? Because if that is the case then the answer is simple: what you see on your staging website is the default and expected output of the shortcode you shared and what you see on your live site is a modified version of the plugin which outputs all the details in this particular way. I suppose someone (the site’s developer) could have modified the plugin’s code to work this way. Now, when you update the plugin, it downloads a ‘clean’ version, without all your custom changes, and overwrites whatever was there before, hence your website becomes broken. This is how all WP plugin updates work and this is why it is never recommended to alter a plugin’s code unless there’s no other way.

    But here, with this plugin, there is a much better way – you can use templates. If instead you used [catlist post_type=”blogs” numberposts=3 pagination=yes template=mytemplate] and followed the documentation to create a file mytemplate.php containing all the customizations you need, nothing would get lost when you update the plugin.

Viewing 1 replies (of 1 total)

The topic ‘Latest update broke plugin’ is closed to new replies.