Title: jonjoncs's Replies | WordPress.org

---

# jonjoncs

  [  ](https://wordpress.org/support/users/jonjoncs/)

 *   [Profile](https://wordpress.org/support/users/jonjoncs/)
 *   [Topics Started](https://wordpress.org/support/users/jonjoncs/topics/)
 *   [Replies Created](https://wordpress.org/support/users/jonjoncs/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/jonjoncs/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/jonjoncs/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/jonjoncs/engagements/)
 *   [Favorites](https://wordpress.org/support/users/jonjoncs/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Footnotes & Content] ACF Flexible Content – List Footnotes](https://wordpress.org/support/topic/acf-flexible-content-list-footnotes/)
 *  Thread Starter [jonjoncs](https://wordpress.org/support/users/jonjoncs/)
 * (@jonjoncs)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/acf-flexible-content-list-footnotes/#post-17876903)
 * Sorry for not answering before, but I droped using the plugin and made myself
   an implementation in my theme, so if I can help you here’s how I could make it
   work.
 * Basically I put some Footnotes along the flexible content text, textarea and 
   wysiwyg, collected all the footnotes and after that, inserted the shortcode to
   show in the last acf content.
 * Here’s the code:
 *     ```wp-block-code
       $footnotes = CustomFootnotes::getInstance();add_filter('the_content', [$footnotes, 'processText']);add_filter('timber/context', function ($context) use ($footnotes) {    $context['footnotes'] = CustomFootnotes::getInstance()->toArray();    return $context;});//add filter to acf fieldsadd_filter('acf/format_value/type=text', [$footnotes, 'processText'], 10, 3);add_filter('acf/format_value/type=textarea', [$footnotes, 'processText'], 10, 3);add_filter('acf/format_value/type=wysiwyg', [$footnotes, 'processText'], 10, 3);//add shortcode for footnotesadd_shortcode('footnotes', [$footnotes, 'show']);
       ```
   
 * Thank you anyway for your attention!

Viewing 1 replies (of 1 total)