[Plugin: Related Links] Suggestion For theme Code
-
Hi,
Nice plugin, just started playing around with it and considering adding built in support in my theme https://www.stallion-theme.com/
You should advise using code like this for adding to themes so it’s only run when the theme is installed and active, otherwise PHP error since the function doesn’t exist.
<?php if(function_exists('get_related_links')){ related_links(); } ?>
Also means other users who add it to a theme can disable the plugin temporarily or forever without having to re-edit the theme files.
David
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘[Plugin: Related Links] Suggestion For theme Code’ is closed to new replies.