Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter nilsolaaxel

    (@nilsolaaxel)

    Solved this by simply adding a filter that changes ‘pre’ to ‘div’

    function my_the_content_filter($content) {
      // assuming you have created a page/post entitled 'jump4joy-gigs'
      if ($GLOBALS['post']->post_name == 'jump4joy-gigs') {
        return preg_replace('/pre/', 'div', $content);
      }
      // otherwise returns the database content
      return $content;
    }
    
    add_filter( 'the_content', 'my_the_content_filter' );

    this is not really a solution of course, but works for me for the time beeing.

    Plugin Contributor Ross Hanney

    (@rosshanney)

    Hello,

    The <pre> tags aren’t added by the plugin. It may be that if you copy/pasted the shortcode from somewhere, the <pre> tags might have copy/pasted along with it. In any case, you can just remove them by editing your page/post using the “Text” (not “Visual”) editor – no filters required.

    Thread Starter nilsolaaxel

    (@nilsolaaxel)

    Sorry, that was not the problem. I already use text mode for editing, and the pre tag is only for the title string (I did’nt say that sorry).
    Maybe interference with som other plugin??
    I will help you with the investigation, I’ll be back.

    Plugin Contributor Ross Hanney

    (@rosshanney)

    Oh, I see.

    Are there any <pre> tags in the event display builder field in the plugin settings (under “Display Options”)?

    Thread Starter nilsolaaxel

    (@nilsolaaxel)

    Nope ….

    Actually you were right, there was a pre tag in the text,
    maybe i did’nt see that it was in visual mode because i usually use text mode …

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘pre in gce listview’ is closed to new replies.