WordPress.org

Ready to get started?Download WordPress

Forums

Read More does not show the rest of my post (1 post)

  1. Reyko
    Member
    Posted 9 months ago #

    Hello!

    I am using a read more element of my posts but although it appears on my page it does not show up the remaining post once I click it.

    <?php
    global $more;
    $more = 0;
    ?>
    <div id="content">
    
    <?php
    query_posts('cat=5');
    while (have_posts()) : the_post();
    $thumb_id = get_post_thumbnail_id();
    
    $thumb_url = wp_get_attachment_image_src($thumb_id,'full', true);
    echo '<div class="myContent">
    <img class="image" src="'.$thumb_url[0].'" >';
    
    the_content('<div class="read">READ MORE</div>');
    echo'</div>';
    endwhile;
    ?>
    
    </div>

Reply

You must log in to post.

About this Topic