The Best Way To Install Plugin Code in Wordpress Theme August 22
If you're new here, check out tips and trick, free stuff in here, software, ebook, and discount voucher, you may want to subscribe to my RSS feed, so you miss it. Thanks for visiting!
Have you ever install Template tags from the plugin and suddenly the plugin error because wordpress upgrade their version, your blog look mess up? I bet u have :D….
So how to prevent your blog getting mess up when the plugin error happen? you need to add catcher between the php code function, so the theory is to check whether the function exist or not in the wordpress system, if they not exist (when error plugin happen) they will not call that function. easy isn’t it? heres how you can implement it into you template.
<?php if ( function_exists(’plugin_template_tag_function’) ) : ?>
<h2>Section </h2>
<?php plugin_template_tag_function(); ?>
<?php endif; ?>
So have you implement this code into your template? if not you better Do it NOW!
Like The Post? Subscribe Here NOW to get an update every week.
Popularity: 3% [?]



