• msmcmullen

    (@msmcmullen)


    I use JW Player to embed video and audio files into my site. If I apply any treatment to search results, i.e. bold, it breaks my file path.

    An excerpt from the object follows:

    <script type=”text/javascript”>
    jwplayer(“audio-20110911”).setup({
    ‘file’: ‘/audio/jrs-america-1990.mp3’,
    provider: ‘sound’,

    If I search for america, relevanssi edits my file path to: /audio/jrs-america-1990.mp3.

    Is there a way to wrap a block of code or text in tags that will exclude the block from search?

    http://wordpress.org/extend/plugins/relevanssi/

Viewing 1 replies (of 1 total)
  • Plugin Author Mikko Saari

    (@msaari)

    Relevanssi should not highlight inside <script> tags, but looks like the highlighting doesn’t quite work as expected. This is on my to-do list to fix.

Viewing 1 replies (of 1 total)
  • The topic ‘How to exclude a block of code from search results’ is closed to new replies.