Forum Replies Created

Viewing 1 replies (of 1 total)
  • hey guys,
    I had the same problem too, and to fix this issue I had to modify some of the shortcodes.php code to avoid the conflict.

    /wp-content/plugins/q-and-a/inc/shortcodes.php

    Where it’s writing out the answer to the question,
    apply_filters( ‘the_content’, get_the_content());

    whenever you run it through the filter, it breaks, so I had to instead run it through a custom function to avoid this:

    nl2p(get_the_content());

    function nl2p($str) {
    $arr=explode(“\n”,$str);

    for($i=0;$i<count($arr);$i++) {
    if(strlen(trim($arr[$i]))>0)
    $out.='<p>’.trim($arr[$i]).'</p>’;
    }
    return $out;
    }

    And now it all works… Does this help? Let me know.
    Thanks

Viewing 1 replies (of 1 total)