• Hi Jason,

    great plugin! really what i was looking for.

    however,one question:
    i made a custom post type ‘recepten’ in my theme ‘Kale’. The template for this cpt is based on single.php and is called single-recept.php. With ACF i created custom field group, one of them is called ‘instructions’ where i write down how to prepare a certain dish. In this Wysiwyg field i can use [note] shortcode, it works fine. But what i miss is the summary at the end of the post where all foortnotes are numbered in a

      and where one can set a title for the footnotes list.

      finally my question: how do i add some code to my single-recept.php template (or in the plugin code) so that the ol list and the title appears at the end of my cpt?

      Thanks!

Viewing 1 replies (of 1 total)
  • Plugin Author Jason Yingling

    (@yingling017)

    Hi! Thanks for using the plugin!

    The ACF WYSIWYG editor field uses a custom filter called acf_the_content to output it’s data. Easy Footnotes adds the summary of footnotes to the bottom of the default WordPress the_content filter. It may work to pass the ACF data through that filter as well.

    You could try something like this:

    
    $wysiwyg_content = get_field('wysiwyg_content');
    
    echo apply_filters('the_content', $wysiwyg_content);
    

    That should take the data from your WYSIWYG field and run it through the WordPress the_content filter.

    I’m not able to set up a demo site and test this out myself at the moment. Let me know if that helps you, and if not I can troubleshoot some more.

Viewing 1 replies (of 1 total)
  • The topic ‘ACF CPT and EasyFootnote: how to…?’ is closed to new replies.