Home / Forums / DynamiX Support / Search Results Displaying VIsual Composer Tags

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts

  • 3media inc
    Participant

    Good Afternoon

    While using the search feature on a site, the search results show the shortcodes from visual composer as tags like this:
    [vc_row][vc_column width="2/3"]

    Any suggestions to display just the content?

    Thanks~

    Andy
    Andy
    Keymaster

    Hi,

    It’s annoying it shows the shortcode, you would have thought WordPress would filter this out by default. The best I can recommend is to try the following, edit DynamiX/search.php

    Replace this line:

    the_excerpt();

    With:

    print apply_filters( 'the_content', $post->the_excerpt );


    3media inc
    Participant

    Good morning

    I did not find

    the_excerpt();
    but something close
    echo get_the_excerpt();

    I tried replacing that with
    print apply_filters( ‘the_content’, $post->the_excerpt );

    Same results

    Suggestions?

    Andy
    Andy
    Keymaster

    Hi,

    What version of the Theme are you using? If you’re not using 5.0.4, please update and see if that makes a difference.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.