Forums

[resolved] [Plugin: LeagueManager] bug inserting misc </p> (6 posts)

  1. YukataNinja
    Member
    Posted 3 years ago #

    LeagueManager is inserting two </p> at the front of the data returned from wordpress' the_content('Read more'); function. When I deactivate LeagueManager the </p></p> is not show anymore. This is happening on my front 'news' page where I have no LeagueManager related code in the post.

  2. YukataNinja
    Member
    Posted 3 years ago #

    Here is the code from my loop:

    <?php
                        $i = 0;
    
                        $my_query = new WP_Query('numberposts=4');
                        while ($my_query->have_posts()) : $my_query->the_post();
                        $do_not_duplicate = $post->ID;
    
                        global $more;
    		            $more = 0;
                    ?>
    
                    <div id="headline_number<?php echo $i?>" <?php if ($i != 0):?>style="display:none;"<?php endif?>>
                        <h1 class="headline_title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
                        <span class="headline_excerpt"><?php the_content('<br />Read more'); ?></span>
                    </div>
    
                    <?php
                        $i = $i + 1;
                        if (4 == $i)
                        {
                            break;
                        }
                        endwhile;
                    ?>
  3. Kolja
    Member
    Posted 3 years ago #

    fixed that and included it in Version 2.2. please re-download it, because i think it makes no sense to tag a new version for this

  4. YukataNinja
    Member
    Posted 3 years ago #

    I have downloaded the current one and that one now generates three </p>

  5. Kolja
    Member
    Posted 3 years ago #

    checked it again. It should now generate an empty <p></p> before and after each table.

  6. YukataNinja
    Member
    Posted 3 years ago #

    Downloaded the newest and it's fixed.

Topic Closed

This topic has been closed to new replies.

About this Topic