• Stef

    (@inpixelitrust)


    The plugin is very nice, just one thing that bothers me. I used it to mix some HTML (an H2, a paragraphe and a link) and images. The problem is that the current output of the plugin uses get_the_content(), which does not convert paragraphs correctly.
    To add support for p tags and the WordPress automagically fonction that adds paragraphs when you press enter :
    1. open index.php
    2. find line 397 to 403
    3. change it to

    elseif( !empty($post->post_content) ) {
    $content = get_the_content();
    $content = apply_filters('the_content', $content);
    echo '<div class="content" style=""' . $datathumb . '>';
    echo '<div class="slide-content slide-content-' . $imgid . '">' .$content. '</div>';
    echo '<img class="orbit-slide" src="' . $urlimg . '" />';
    echo '</div>';

    If anybody has an idea how I could make this more “generic” without hacking the plugin code it would be great. Maybe something like a function in functions.php ? Or better, add this to the plugin code in next release, I might no be the only on who wants clean paragraphs in the output.

    Thanks 🙂

    http://wordpress.org/extend/plugins/wp-orbit-slider/

  • The topic ‘[Plugin: WP Orbit Slider] Output of HTML not formated in the slider’ is closed to new replies.