Some people use more and other less Plugins in WordPress. but it is allways advisable to check via code if a Plugin is active or not. That makes sure the theme wouldn’t break if the Plugin is not active. It’s pretty easy to include a little bit code to check for inactivity. I show you an example where I use it in my Plugin RSSImport.
...
Example for Plugin RSSImport:
This is how the function looks like in the code of the Plugin RSSImport.
...
function RSSImport($display=0, $feedurl, $displaydescriptions=false, $truncatetitle=true) {
if ( $feedurl ) {
...
or a little bid smaller
Comments
3 responses to “Secure Include Plugin In WordPress”
[…] :14 Stunden nach der Veröffentlichung fand ich dies -also bin ich nicht die einzige mit der Idee gewesen-schön sowas. Auch da sind einige […]
Is it possible to run more than 1 feed in a template page?
I tried a table with 3 feeds, only 1 showed up.
@Richard: yes, you can use many feeds an your site. The link for browser and users must stay in the in the head of the theme.