WordPress.org

Ready to get started?Download WordPress

Forums

My Content Management
Disable glossary from autolinking words on other pages? (3 posts)

  1. damainman
    Member
    Posted 2 years ago #

    Hello,

    Awesome plugin btw!!

    I am using the plugin just for the glossary functionality. I have 1 page with a bunch of gallery terms. However I just noticed that now any page containing any of the terms, autolinks the term to the glossary page.

    Is there any way to disable this? Basically, I don't want terms to automatically be turned into links due to my site layout and structure.

    Thank you in advance.

    http://wordpress.org/extend/plugins/my-content-management/

  2. Joe Dolson
    Member
    Plugin Author

    Posted 2 years ago #

    There's no control to disable it, but it's an easy edit to the PHP file.

    Near the end of the file my-glossary-filter.php, comment out these two lines:

    add_filter('the_content', 'mcm_glossary_filter', 10);
    add_filter('comment_text', 'mcm_glossary_filter', 10);

    Replace with

    //add_filter('the_content', 'mcm_glossary_filter', 10);
    //add_filter('comment_text', 'mcm_glossary_filter', 10);
  3. damainman
    Member
    Posted 2 years ago #

    Joe

    You are sooooo awesome!!!!! Thank you!!!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic