• Resolved carlosalas

    (@carlosalas)


    Hello everyone! Well, I just cannot set the read more link in place. I don’t know what is wrong but this is not working for me.

    <?php the_content(‘read more…’); ?>

    The read more link does not appear and even the article post does not cut the text (excerpt)..

    Please help!!

    Thank you.
    Greets.

Viewing 4 replies - 1 through 4 (of 4 total)
  • are you manually inserting the ‘more’ from the editor, or are you making a custom exerpt?

    the_content displays the full post norally, so you wouldn’t see the ‘read more’

    Thread Starter carlosalas

    (@carlosalas)

    Read More Techniques

    The parameters within the template tag the_content() are as follows:

    <?php the_content( $more_link_text , $strip_teaser, $more_file ); ?>

    This is what is written in codex.wordpress.org but is not working.. and this is what I have:

    <p><?php the_content('<span class="more-text">read more...</span>'); ?></p>

    but it seems it does not works.. I’ve put the ‘more’ from the editor.. nothing happens =/

    Thread Starter carlosalas

    (@carlosalas)

    I’ve created a function in functions.php and it works!!

    function the_continue_reading_link() {
    	return ' <a href="'. get_permalink() . '">' . __( '<span class="more-text">Read more...</span>') . '</a>';
    }
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Problem with the_content()’ is closed to new replies.