Title: include the plugin in functions.php
Last modified: August 31, 2016

---

# include the plugin in functions.php

 *  Resolved [myasseen](https://wordpress.org/support/users/myasseen/)
 * (@myasseen)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/include-the-plugin-in-functionsphp/)
 * I want to include the plugin folder in the theme folder and call it from functions.
   php file rather than install it as a plugin but it doesn’t work I think because
   of the paths.
 * Could you help please??
 * [https://wordpress.org/plugins/wp-subtitle/](https://wordpress.org/plugins/wp-subtitle/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Ben Huson](https://wordpress.org/support/users/husobj/)
 * (@husobj)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/include-the-plugin-in-functionsphp/#post-6954578)
 * I would not recommend you include the plugin file in the theme as it would then
   not receive any plugin updates if there are any security issues etc.
 * It’s best just to build the theme so that it works with/without the plugin and
   direct users to download the plugin to add that functionality.
 * Just ensure you use `function_exists` when using the plugin code in your templates
   so it doesn’t produce errors if the plugin is disabled.
 *     ```
       <?php if ( function_exists( 'the_subtitle' ) ) the_subtitle(); ?>
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘include the plugin in functions.php’ is closed to new replies.

 * ![](https://ps.w.org/wp-subtitle/assets/icon-256x256.png?rev=981565)
 * [WP Subtitle](https://wordpress.org/plugins/wp-subtitle/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-subtitle/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-subtitle/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-subtitle/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-subtitle/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-subtitle/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Ben Huson](https://wordpress.org/support/users/husobj/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/include-the-plugin-in-functionsphp/#post-6954578)
 * Status: resolved