Title: [glossary_term_list] shortcode bugs
Last modified: August 21, 2016

---

# [glossary_term_list] shortcode bugs

 *  [dcmg](https://wordpress.org/support/users/dcmg/)
 * (@dcmg)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/glossary_term_list-shortcode-bugs/)
 * First of all, I love this plugin and I would congratulate you for your great 
   work.
 * I’m currently using version 2.4.1, and I got some troubles using [glossary_term_list]
   shortcode :
    #1. the `<span class="glossary-list-details">` closes with `</ul
   >` ! #2. the code doesn’t generate the expected number of columns (seems to generate
   columns containing N elements, instead of N columns)
 * So, I made some corrections in **class/wpg-shortcode-glossary-list.class.php**
   that I would appreciate you validate and report in future versions :
 * #1. replace at line 97 `</ul>` by `</span>`
    #2. add `else: $cols = (count($termlist)
   + $cols - 1)/$cols;` after line 87
 * Many thanks in advance.
 * [http://wordpress.org/extend/plugins/wp-glossary/](http://wordpress.org/extend/plugins/wp-glossary/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [TCBarrett](https://wordpress.org/support/users/tcbarrett/)
 * (@tcbarrett)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/glossary_term_list-shortcode-bugs/#post-3863113)
 * Hi dcmg
 * Have you got an example page showing the issue? Or walk me through an exact way
   to replicate the problem?
 * Thanks.
 *  Thread Starter [dcmg](https://wordpress.org/support/users/dcmg/)
 * (@dcmg)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/glossary_term_list-shortcode-bugs/#post-3863118)
 * Hi Tom,
    I have no example page, but the issue could be reproduced easily. My
   glossary page is empty and use a template page that makes a `do_shortcode('[glossary_term_list
   cols=3 /]')`. I only have 10 terms and as a result I got 4 columns containing
   3 terms, except the last one (1 term). Reading the source code makes me consider
   there was a bug and I corrected it. Another solution could be to use the CSS 
   to generate multicolumns… -Damien

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[glossary_term_list] shortcode bugs’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-glossary_5d5449.svg)
 * [WP Glossary](https://wordpress.org/plugins/wp-glossary/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-glossary/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-glossary/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-glossary/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-glossary/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-glossary/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [dcmg](https://wordpress.org/support/users/dcmg/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/glossary_term_list-shortcode-bugs/#post-3863118)
 * Status: not resolved