Title: Non-numeric footnotes
Last modified: April 21, 2023

---

# Non-numeric footnotes

 *  [anonmous69](https://wordpress.org/support/users/anonmous69/)
 * (@anonmous69)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/non-numeric-footnotes/)
 * First off: awesome footnote plugin. I’ve tried at least three over the years,
   this one is by far the best.
 * I was pleasantly surprised to discover that I could use something other than 
   a number when using the ‘referencenumber’ attribute. I have had no problems unless
   the very first footnote is non-numeric. If it is, there is an exception generated
   on line 172 of modern-footnotes.php Looking at the code within that file, I found
   that if I changed the following from
 *     ```wp-block-code
       if (!isset($modern_footnotes_all_posts_data[$scope_id])) {
           $modern_footnotes_all_posts_data[$scope_id] = array(
             'modern_footnotes_post_number' => $GLOBALS['current_modern_footnotes_post_number'],
             'used_reference_numbers' => array($display_number),
             'footnotes' => array(
               $display_number => $content
             )
           );
           $GLOBALS['current_modern_footnotes_post_number']++;
         }
       ```
   
 * to
 *     ```wp-block-code
       if (!isset($modern_footnotes_all_posts_data[$scope_id])) {
           $used_reference_numbers_array = array();
           if (is_numeric($display_number)) {
               array_push($used_reference_numbers_array, $display_number);
           }
           $modern_footnotes_all_posts_data[$scope_id] = array(
             'modern_footnotes_post_number' => $GLOBALS['current_modern_footnotes_post_number'],
             'used_reference_numbers' => $used_reference_numbers_array,
             'footnotes' => array(
               $display_number => $content
             )
           );
           $GLOBALS['current_modern_footnotes_post_number']++;
         }
       ```
   
 * that it worked. This is not tested except locally by me. So, a request: officially
   allow non-numeric footnotes.
 * thanks for all of the work!
    -  This topic was modified 2 years, 11 months ago by [anonmous69](https://wordpress.org/support/users/anonmous69/).
      Reason: pressed enter by mistake
    -  This topic was modified 2 years, 11 months ago by [anonmous69](https://wordpress.org/support/users/anonmous69/).
      Reason: paragraph mistakenly styled as code

The topic ‘Non-numeric footnotes’ is closed to new replies.

 * ![](https://ps.w.org/modern-footnotes/assets/icon-128x128.jpg?rev=1634981)
 * [Modern Footnotes](https://wordpress.org/plugins/modern-footnotes/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/modern-footnotes/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/modern-footnotes/)
 * [Active Topics](https://wordpress.org/support/plugin/modern-footnotes/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/modern-footnotes/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/modern-footnotes/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [anonmous69](https://wordpress.org/support/users/anonmous69/)
 * Last activity: [2 years, 11 months ago](https://wordpress.org/support/topic/non-numeric-footnotes/)
 * Status: not resolved