Forums Forums Search & Filter Pro Visual Composer Conflict – Section Code Printed

Viewing 9 posts - 1 through 9 (of 9 total)
  • Anonymous
    #28448

    Hi there !

    I have two search fields forms, for two custom type post.

    One is working well, but the other one is creating a conflict with Visual Composer, and printing and section code echo on frontend. See screenshot: http://i.imgur.com/IveyjHb.png

    What can be the problem?

    The template for results it’s the same.
    Do you need backend access?

    Thanks and regards!

    Anonymous
    #28691

    I searched on the web, and found out the problem is not from search filter pro but from Visual Composer.

    It has a conflict with the_excerpt() when doesn’t exist no excerpt.

    I have created a php workaround.

    Thanks anyway !

    Regards!

    Ross Moderator
    #28716

    Great thanks for the update + info 🙂

    Anonymous
    #32628

    Carlos, can you shared how did you solve it?
    Thanks

    Anonymous
    #32629

    Hi Alberto !

    Yes. On the template of filter i entered:

    if ( has_excerpt( $post->ID ) ) {
         the_excerpt();
    }else{
          // Get the first 399 characters
          $content = get_the_content();
          $content = strip_tags($content);
          echo substr($content, 0, 339). "...";
    }
    

    Regards!

    Anonymous
    #32630

    Thanks, i did that but te VC code still appears

    Anonymous
    #32632

    Alberto, do you have pages/posts without any content?

    Anonymous
    #32634

    No.
    It shows this
    [vc_row css=”.vc_custom_1441392985150{margin-top: 30px !important;margin-bottom: 30px !important;}”][vc_column][vc_column_text]
    CATS Es una fuente de calcio y azufre en forma de tiosulfato que por su poder reductor incrementa la asimilación de nutrientes por la planta.
    [/vc_column_text][/vc_column][/vc_row][vc_row][vc_column width=”1/4″][vc_single_image image=”7054″ img_size=”medium”][/vc_column][vc_column width=”1/4″][vc_column_text]Fabricante: KERLEY LATINOAMERICANA

    Anonymous
    #32635

    Maybe it could exist another conflict with wordpress code. You could do some tests, like comment the code on the template while refreshing the page to find out what could be the cause of your bug.

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