WordPress.org

Ready to get started?Download WordPress

Forums

Related Links
[resolved] Suggestion For theme Code (2 posts)

  1. SEO Dave
    Member
    Posted 2 years ago #

    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/

  2. piffpaffpuff
    Member
    Plugin Author

    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic