Forums

[resolved] Stop Repeating Text Box (6 posts)

  1. bestcssdesigns
    Member
    Posted 3 years ago #

    Hi, I have the following in my script.

    <div class="post" id="image-<?php the_ID(); ?>">

    <h3>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></h3>
    <span><?php comments_popup_link('0', '1', '%'); ?></span>

    <?php the_content('Read the rest of this entry »'); ?>

    <div class="clear"></div>

    </div><!-- Item Div -->

    <?php endwhile; ?>

    <div class="clear"></div>

    However, when the script below is present, the text box keeps on repeating within the div and so fort. However, when it is not present, all the text boxs have there own individual text boxes and it is neat.

    <?php the_content('Read the rest of this entry »'); ?>

  2. Otto
    Tech Ninja
    Posted 3 years ago #

    We don't understand what you mean. Perhaps a link to your site showing the problem would explain it better.

  3. bestcssdesigns
    Member
    Posted 3 years ago #

    OK. Here is what I just noticed. When even I add the

    <?php the_content('Read the rest of this entry »'); ?>

    It adds a div tag but no closing tag. The div will be like

    <div id="lipsum"><p>Lorem ipsum dolor sit amet, consecte and so on informataion<p>

    And that is why it keeps repeating within the same area. But how do I stop wordpress from adding the div called <div id="lipsum">?

  4. bestcssdesigns
    Member
    Posted 3 years ago #

    Please help. My problem is almost resolved. I just need to find out how to stop wordpress from creating
    <div id="lipsum"> without a closing tag everytime I put
    <?php the_content('Read the rest of this entry »'); ?>

  5. Otto
    Tech Ninja
    Posted 3 years ago #

    Sounds to me like the div is actually in the content of your post itself. Edit your post to remove the div.

  6. bestcssdesigns
    Member
    Posted 3 years ago #

    Thanks! I honestly don't even know how that got their... :S

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.