Latest Posts v1.0 by Cypher
While looking for plugins for Jutia Group I stumbled upon Latest Posts v1.0. It is on the left side, under "10 Newest Entries".
I needed some more functionality out of it so I took the liberty to modify the code a bit. Just to make it a tad more flexible.
I started by changing the function call for inside the template. I changed it from:
to
What this does is, before the function is called its existence will be verified. This will prevent your theme from braking and your pages loading halfway and then displaying errors when the function is called:
if you disable the plugin (now you can turn on and off the plugin without the visitors getting page errors)
the plugin file is moved, corrupted or deleted
In other words, if something happens to the plugin and you are unaware of the problem, your site will not brake. This of course is bad, but it will not have a negative effect on your site.
My next change was to make the number of posts being displayed flexible. With other plugins and the …
I needed some more functionality out of it so I took the liberty to modify the code a bit. Just to make it a tad more flexible.
I started by changing the function call for inside the template. I changed it from:
to
What this does is, before the function is called its existence will be verified. This will prevent your theme from braking and your pages loading halfway and then displaying errors when the function is called:
if you disable the plugin (now you can turn on and off the plugin without the visitors getting page errors)
the plugin file is moved, corrupted or deleted
In other words, if something happens to the plugin and you are unaware of the problem, your site will not brake. This of course is bad, but it will not have a negative effect on your site.
My next change was to make the number of posts being displayed flexible. With other plugins and the …