Forums Forums Search & Filter Pro Tags appearing in search results after filtering

Viewing 10 posts - 1 through 10 (of 24 total)
  • Anonymous
    #55571

    Is there a setting that affects this? I looked in the ‘display’ settings but couldn’t see anything. My search results at first load appear without tags, but if I filter for anything the updated results are displaying visual composer tags.

    Thanks!

    Trevor
    #55573

    Visual Composer often uses javascript to render shortcodes (I assume that’s what you mean by tags) and so a javascript error seems the likely first thing to look for. If you have Chrome, press ctrl+shift+I for the code inspector. One of the tabs for that is the console. Are any errors showing?

    Anonymous
    #56394

    Hi there, sorry for the delay ๐Ÿ™‚

    Yes I meant shortcodes, sorry. They look like [vc_row][vc_column width="1/2"] etc etc

    There are no console errors or warnings when I filter results.

    Anonymous
    #56398

    A interesting tidbit I just noticed which might be of interest โ€ฆ I load my search page, the results are pre-loaded and look fine, no shortcodes displayed. If I filter for anything the results update and Visual Composer shortcodes appear. However if I then reload the whole page in my browser, the page reloads with the filtered results I had previously selected, but without Visual Composer shortcodes.

    Trevor
    #56406

    From what you say, this behavior is suggestive of Ajax loading of results. It also sounds, for some reason (maybe theme related, I am not sure) that the VC rendering javascript is not being reloaded after the S&F Ajax has done. In our FAQ Page, we have a small javascript snippet you could add to a page that would help you, maybe?

    $(document).on("sf:ajaxfinish", ".searchandfilter", function(){
    	console.log("ajax complete");
    	//so load your lightbox or JS scripts here again
    });

    However, I do not know what function you would have to put on that commented line. Maybe WPBakery can advise you?

    Anonymous
    #57096

    Oops, after further study ๐Ÿ™‚ I may have misstated the problem. Sorry ๐Ÿ™

    I am using the shortcode to display results, and am using it to display results from a Custom Post Type. The CPT is part of WP-Customer Area, which enables userlevel-based viewing permissions on a page-by-page basis.

    When I visit the URL with the search form on it, a set of results are loaded but instead of the excerpt they display parts of my menu. I guess this is probably related to viewing privileges. However if I filter for anything or search for any term the results update, but this time they DO contain the correct excerpt, along with the unwanted Visual Composer shortcakes.

    So it seems like there are two separate issues going on.

    The first part I’m not too worried about. If I could just have zero results pre-loaded when I visit the search page that would be fine. Is there a way I can disable the results that are “pre-loaded”?

    The second part I would like to figure out a way to strip the tags.

    Anonymous
    #57097

    Damn autocorrect. shortcakes = shortcodes.

    Trevor
    #57105

    Are you able to see if Visual Composer is actually loading its css and javascript assets to the page?

    Anonymous
    #57108

    On the results page? Everything seems to be laid out normally. It’s just a simple 2 row VC layout, with the search form on row 1 and the results shortcode on row 2.

    If I click into the pages listed in the search results they are all laid out as expected.

    Trevor
    #57109

    Am I able to see the page with the visible shortcodes?

Viewing 10 posts - 1 through 10 (of 24 total)