Support » Plugin: Related Links » [Plugin: Related Links] Suggestion For theme Code

  • Resolved SEO Dave

    (@seo-dave)


    Hi,

    Nice plugin, just started playing around with it and considering adding built in support in my theme http://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

    http://wordpress.org/extend/plugins/related-links/

Viewing 1 replies (of 1 total)
  • Plugin Author piffpaffpuff

    (@chabis)

    thanks for the tip you are completely right. but i think most of the users aren’t really theme developers and i would like to keep the faq as simple as possible. but i’ve added a new question for theme devs to consider your code example.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Related Links] Suggestion For theme Code’ is closed to new replies.