• I use your ACF: Google Font Selector plugin for my project. Firs of all I would like to thank you about this beautiful plugin that you share with all community.

    I have little problem with this plugin and I think that you can help me about this issue.
    I would like to include this plugin in my theme. So I would like to use acf/include_fields hook to do this. But this is not working for me. If I install as a plugin everything it’s ok.

    I also contacted with acf team and he told me to contact with you.
    This is my code:

    function athena_register_fields(){
    include_once(‘includes/add-ons/acf-google-font-selector-field/acf-google_font_selector-v5.php’);
    }
    add_action(‘acf/include_fields’, ‘athena_register_fields’);

    So
    When I include with code I got this: http://prntscr.com/7slgwg
    When I install as plugin I got this: http://prntscr.com/7sli3q

    https://ww.wp.xz.cn/plugins/acf-google-font-selector-field/

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

    (@danielpataki)

    Hi There,

    I think the issue is that you are including the v5 file. The plugin is a bit more elaborate so there are some common functions defined. Try including the acf-google_font_selector.php file, perhaps that will fix things!

    Daniel

Viewing 1 replies (of 1 total)

The topic ‘Include in theme with acf/acf/include_fields hooks’ is closed to new replies.