/

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.

Finding the Shortcode List Inside the Plugin

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.


Shortcode List

This includes the following shortcodes:

Custom glossary tooltip

Shortcode: glossary_tooltip content="text" link="www.example.com" dashicon="dashicons-editor-help" color="#c0c0c0" size="16px"] term [/glossary_tooltip]

  • content - the content which will be displayed in the tooltip.
  • (optional) link - clicking the parsed word will direct the user to this link
  • (optional, only for dashicon)  dashicon   - The icon which will be used before term to display the tooltip (list of possible   dashicons  ).
  • (optional, only for dashicon) color - the color of the   dashicon.
  • (optional, only for dashicon) size - the size of the   dashicon.

Exclude from parsing

Shortcode -   [glossary_exclude] text [/glossary_exclude]

Apply tooltip

Shortcode -  [cm_tooltip_parse] text [/cm_tooltip_parse]

Note: 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);

Show Glossary Index

Shortcode: [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"<sup>3</sup>

Since the [glossary] shortcode is by far the most advanced one, it allows for additional attributes. Some notes:

  • disable_listnav - use 1 to turn off the alphabetical list navigation.
  • cmttct_taxonomy_X="Y" - pre-select a taxonomy with given ID (only with Custom Taxonomies Add-On).
  • freeze_cmttct_taxonomy_X - 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).
  • search-term - This attribute is for Server-side pagination only.
  • itemspage="x" - This attribute is for Server-side pagination only.
  • glossary_index_style - Accepts the following values:
    • 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"

Show Glossary Search Form

Shortcode - [glossary_search]

Show Merriam-Webster Dictionary

Shortcode [glossary_dictionary term="term name"]

Show Merriam-Webster Thesaurus

Shortcode - [glossary_thesaurus term="term name"]

Translate

Shortcode [glossary_translate term="text-to-translate" source="english" target="spanish"]

Toggle Tooltips 

Shortcode - [glossary-toogle-tooltips session="0"]

Toggle Theme

Shortcode -  [glossary-toggle-theme label="Test theme"]

Wikipedia -

Shortcode - [glossary_wikipedia term="term name"]


Additional Shortcodes (CommunityTerms)

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

Community Terms Dashboard

Shortcode - [terms_dashboard]

[terms_dashboard]

Suggest a Term

Shortcode - [community_terms_form]

[community_terms_form]


Show Glossary Category Index Attributes Shortcode

Shortcode - [glossary cat="cat1,cat2" gtags="tag1,tag2" search_term="term" itemspage="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