Skip to:
Content
Pages
Categories
Search
Top
Bottom

Parsing of CM Tooltip glossary terms in forum

  • @barb21148

    Participant

    Good day, I’d like to find out from you if is is possible to parse the glossary terms that come up in the heading of my forum. In other words, I do not want the words that are linked to my CM Tooltip plugin to be highlighted in the headings of my forum topics so I need to wrap the term in [glossary_exclude] [/glossary_exclude] within the template.

    For examples of what I mean, see the headings in the links to these topics:
    http://www.pdsnet.co.za/index.php/forums/forum/investment-advice/ – the word “investment” is highlighted
    http://www.pdsnet.co.za/index.php/forums/topic/elimination-of-the-bears/ – the word “bears” is highlighted

    Wordpress Version 4.5.3, bbPress Version 2.5.10

    Thank you

Viewing 1 replies (of 1 total)
  • @robin-w

    Moderator

    I’ve been mulling this over…

    I don’t think the following will work, but it’s worth an initial try – add this to your functions file

    function bsp_breadcrumbs ($args) {
    	$pre_current_text = $args['current_text'] ;
    	$args['current_text'] = '[glossary_exclude]'.$pre_current_text.'[/glossary_exclude]' ;
    	return $args ;
    }
    
    //add the filter 
    add_filter('bbp_before_get_breadcrumb_parse_args', 'bsp_breadcrumbs');
    
    

    Let me know either way !

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar