Title: timecodestudios's Replies | WordPress.org

---

# timecodestudios

  [  ](https://wordpress.org/support/users/timecodestudios/)

 *   [Profile](https://wordpress.org/support/users/timecodestudios/)
 *   [Topics Started](https://wordpress.org/support/users/timecodestudios/topics/)
 *   [Replies Created](https://wordpress.org/support/users/timecodestudios/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/timecodestudios/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/timecodestudios/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/timecodestudios/engagements/)
 *   [Favorites](https://wordpress.org/support/users/timecodestudios/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Q and A FAQ and Knowledge Base for WordPress] NextGEN Gallery Conflict](https://wordpress.org/support/topic/nextgen-gallery-conflict-3/)
 *  [timecodestudios](https://wordpress.org/support/users/timecodestudios/)
 * (@timecodestudios)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/nextgen-gallery-conflict-3/#post-4257059)
 * 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)