WordPress Glossary Plugin (CMTG) - Shortcodes - Avoid Glossary Parsing
How to Avoid Glossary Parsing
TIP: What Are Shortcodes
Shortcodes add dynamic content to your site via a small piece of code. Learn more: Shortcodes - How To Use
By default, the WordPress Glossary plugin parses all of your posts and pages to find and highlight the defined terms that appear in your content.
However, there may be some cases where you to avoid glossary parsing on certain sections of your page or post.
There are 2 ways to avoid glossary parsing:
- To avoid parsing parts of pages or posts, wrap the term with the
[glossary_exclude]shortcode. For example:
[glossary_exclude]paragraph text[/glossary_exclude]. The paragraph surrounded by the shortcode will not highlight any of the terms it contains.
- There is an option Exclude HTML tags from parsing in the plugin’s settings. Choose there html-tags which will prevent the plugin from parsing script sections such as:
- All heading tags (h1-h6)
- Other (header, pre, object, textarea)
You can find this option by navigating to Admin Dashboard → CM Tooltip Glossary → Settings → General Settings tab.