CM Tooltip (CMTG) - Shortcodes - Available Shortcodes

Glossary Plugin Shortcodes

Back to User Guide

The CM tooltip glossary plugin can make use of various WordPress glossary shortcodes, allowing you to quickly add sections of your glossary to any page or post, and modify their different functions easily.

Anyone who wishes to use shortcodes on their CM tooltip glossary plugin should bookmark this page for future reference!

Here’s where you can view to all of your WordPress glossary shortcodes

Each glossary edition support different amount of shortcodes. To check which shortcodes are supported with your edition of the plugin go to the admin menu and under the glossary plugin section click on Shortcodes.

This includes the following shortcodes:

  • Custom glossary tooltip - [glossary_tooltip content="text" dashicon="dashicons-editor-help" color="#c0c0c0" size="16px"] term [/glossary_tooltip]
    • content - the content which will be displayed in the tooltip
    • dashicon - the icon which will be used instead of the term to display the tooltip (list of possible dashicons)
    • color - (only for dashicon!) the color of the dashicon
    • size - (only for dashicon!) the size of the dashicon
  • Exclude from parsing - [glossary_exclude] text [/glossary_exclude]
  • Apply tooltip - [cm_tooltip_parse] text [/cm_tooltip_parse] 1
  • Show Glossary Index - [glossary cat="cat1,cat2" gtags="tag1,tag2" search_term="term"itemspage="1"letter="all" related="0" no_desc="0" hide_terms="0" hide_abbrevs="0" hide_synonyms="0" glossary_index_style="tiles"3 (more below...)]
    • Since the [glossary] shortcode is by far the most advanced one, it allows for additional attributes:
      • disable_listnav - allows to turn off the alphabetical list navigation
      • cmttct_taxonomy_X="Y" - allows to pre-select a taxonomy with given ID (only with Custom Taxonomies Add-On)
      • freeze_cmttct_taxonomy_X - allows to hide the taxonomy selection, if the value is already pre-selected (so the results are limited but there's no way to change it) (only with Custom Taxonomies Add-On)
  • Show Glossary Search Form - [glossary_search]
  • Show Merriam-Webster Dictionary - [glossary_dictionary term="term name"]
  • Show Merriam-Webster Thesaurus - [glossary_thesaurus term="term name"]
  • Translate - [glossary_translate term="text-to-translate" source="english" target="spanish"]
  • Toggle Tooltips - [glossary-toogle-tooltips session="0"]
  • Toggle Theme - [glossary-toggle-theme label="Test theme"]
  • Wikipedia - [glossary_wikipedia term="term name"]
  • 1 The shortcode internally calls custom filter called 'cm_tooltip_parse' which can be used if you want the tooltip functionality outside of 'the_content': $text_with_tooltip = apply_filters('cm_tooltip_parse', $text);
  • 2 This attribute is for Server-side pagination only
  • 3 Possible values are (use the value in quotes): Classic "classic", Classic + definition "classic-definition", Classic + excerpt "classic-excerpt", Small Tiles "small-tiles", Big Tiles "big-tiles", Classic table "classic-table", Modern table "modern-table", Sidebar + term page "sidebar-termpage"

Additional Shortcodes

For these two shortcodes install Glossary Community Terms Add-On.

  • Community Terms Dashboard - [terms_dashboard]
  • Suggest a Term - [community_terms_form]



Show Glossary Category Index Attributes Shortcode

 [glossary cat="cat1,cat2" gtags="tag1,tag2" search_term="term"2itemspage="1" 2letter="all" related="0" no_desc="0" hide_terms="0" hide_abbrevs="0" hide_synonyms="0" glossary_index_style="tiles"3]

This shortcode supports following set of attributes:

  • cat – name of the category you want to show the list for
  • disable_listnav – controls whether the alphabetical list navigation should be shown for the shortcodes (default: 0)
  • title_prefix – displays the text which will appear in the heading
  • title_category – controls whether the category title should appear in the heading (default: 1 – show the category title)
  • title_show – controls whether to show the heading – setting this to 0 means the heading won’t be displayed at all (default: 1 – show heading)
  • related (Pro+/Ecommerce) – you can use this attribute to show “up to X” related articles on Glossary Index List. Note: It only works for the Glossary Index List views displaying the description. The list of related articles will be rendered under the description, or instead of it (see attribute “no_desc”).
  • no_desc (Pro+/Ecommerce) – you can use this attribute (add no_desc=”1″) to disable the descriptions on Glossary Index List
  • hide_terms (Pro+/Ecommerce) – you can use this attribute (add hide_terms =”1″) to stop the Glossary Terms from being displayed on the Glossary Index list (e.g. if you want to make a list of only the synonyms or abbreviations)
  • hide_abbrevs (Pro+/Ecommerce) – you can use this attribute (add hide_abbrevs =”1″) to stop the Glossary Term abbreviations from being displayed on the Glossary Index list (e.g. if you want to make a list of only the terms or abbreviations)
  • hide_synonyms (Pro+/Ecommerce) – you can use this attribute (add hide_synonyms=”1″) to stop the Glossary Term synonyms from being displayed on the Glossary Index list (e.g. if you want to make a list of only the terms or abbreviations)

More information about the CM Tooltip Glossary WordPress  Plugin

Other WordPress products can be found at CreativeMinds WordPress Store

Let us know how we can Improve this Product Documentation Page

To open a Support Ticket visit our support center