Title: bug Include the plugin from your theme functions.php
Last modified: February 15, 2023

---

# bug Include the plugin from your theme functions.php

 *  Resolved [marcoc84](https://wordpress.org/support/users/marcoc84/)
 * (@marcoc84)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/bug-include-the-plugin-from-your-theme-functions-php/)
 * [https://ibb.co/Qr4GMSW](https://ibb.co/Qr4GMSW)
   [https://ibb.co/KrYnPZB](https://ibb.co/KrYnPZB)
 * I have included the plugin in the theme but there are bugs.
 * include_once( get_stylesheet_directory() . ‘/includes/advanced-custom-fields-
   font-awesome/acf-font-awesome.php’ );
 * 
   the icons are not visible ( see image) also in the settings if I write my FontAwesome
   API Token it does not do the validation and does not show any kit.instead if 
   I install the plugin with the classic wordpress method it works.
 * how can i include the plugin in the theme without these errors?

Viewing 5 replies - 16 through 20 (of 20 total)

[←](https://wordpress.org/support/topic/bug-include-the-plugin-from-your-theme-functions-php/?output_format=md)
[1](https://wordpress.org/support/topic/bug-include-the-plugin-from-your-theme-functions-php/?output_format=md)
2

 *  Thread Starter [marcoc84](https://wordpress.org/support/users/marcoc84/)
 * (@marcoc84)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/bug-include-the-plugin-from-your-theme-functions-php/page/2/#post-16475279)
 * In acf-font-awesome.php, I have updated the code blocks where ‘ACFFA_PUBLIC_PATH’
   and ‘ACFFA_DIRECTORY’ are defined and the functions file, but I do not display
   the plugin entry in acf.
 *  Thread Starter [marcoc84](https://wordpress.org/support/users/marcoc84/)
 * (@marcoc84)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/bug-include-the-plugin-from-your-theme-functions-php/page/2/#post-16475281)
 * In acf-font-awesome.php, I have updated the code blocks where ‘ACFFA_PUBLIC_PATH’
   and ‘ACFFA_DIRECTORY’ are defined and the functions file, but I do not display
   the plugin entry in acf.
 *  Plugin Author [Matt Keys](https://wordpress.org/support/users/mattkeys/)
 * (@mattkeys)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/bug-include-the-plugin-from-your-theme-functions-php/page/2/#post-16475288)
 * This might have been what you were asking about earlier, but just to clarify 
   in case you are missing it. You do still need this code in your functions.php:
 *     ```wp-block-code
       include_once( get_stylesheet_directory() . '/third-part/plugins/advanced-custom-fields-font-awesome/acf-font-awesome.php' );
       ```
   
    -  This reply was modified 3 years, 3 months ago by [Matt Keys](https://wordpress.org/support/users/mattkeys/).
 *  Thread Starter [marcoc84](https://wordpress.org/support/users/marcoc84/)
 * (@marcoc84)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/bug-include-the-plugin-from-your-theme-functions-php/page/2/#post-16475354)
 * great!! thanks for your support it is now working
 *  Plugin Author [Matt Keys](https://wordpress.org/support/users/mattkeys/)
 * (@mattkeys)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/bug-include-the-plugin-from-your-theme-functions-php/page/2/#post-16475356)
 * Glad to hear it! I’ll look to integrate this solution in the next release of 
   this plugin.

Viewing 5 replies - 16 through 20 (of 20 total)

[←](https://wordpress.org/support/topic/bug-include-the-plugin-from-your-theme-functions-php/?output_format=md)
[1](https://wordpress.org/support/topic/bug-include-the-plugin-from-your-theme-functions-php/?output_format=md)
2

The topic ‘bug Include the plugin from your theme functions.php’ is closed to new
replies.

 * ![](https://ps.w.org/advanced-custom-fields-font-awesome/assets/icon-256x256.
   jpg?rev=3435775)
 * [Advanced Custom Fields: Font Awesome Field](https://wordpress.org/plugins/advanced-custom-fields-font-awesome/)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-custom-fields-font-awesome/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-custom-fields-font-awesome/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-custom-fields-font-awesome/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-custom-fields-font-awesome/reviews/)

 * 20 replies
 * 3 participants
 * Last reply from: [Matt Keys](https://wordpress.org/support/users/mattkeys/)
 * Last activity: [3 years, 3 months ago](https://wordpress.org/support/topic/bug-include-the-plugin-from-your-theme-functions-php/page/2/#post-16475356)
 * Status: resolved