WordPress.org

Ready to get started?Download WordPress

Forums

Show content not excerpt (9 posts)

  1. qed2u
    Member
    Posted 4 years ago #

    I want my entire content to show on a post or page not the excerpt which has to be clicked t bring me to the full content How can I do this in 2010 ?

  2. chinmoy29
    Member
    Posted 4 years ago #

    replace the_excerpt() function with the_content() function

  3. qed2u
    Member
    Posted 4 years ago #

    Which file will this be in I am using the basic default 2010 and there does not seem to be the_excerpt

  4. Samuel B
    moderator
    Posted 4 years ago #

    look in loop.php

  5. chinmoy29
    Member
    Posted 4 years ago #

    edit the loop.php file

  6. qed2u
    Member
    Posted 4 years ago #

    Which file is the_excerpt in I can see this
    /**
    * Sets the post excerpt length to 40 characters.
    *
    * To override this length in a child theme, remove the filter and add your own
    * function tied to the excerpt_length filter hook.
    *
    * @since Twenty Ten 1.0
    * @return int
    */
    function twentyten_excerpt_length( $length ) {
    return 4000;
    }
    add_filter( 'excerpt_length', 'twentyten_excerpt_length' );
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    where I have upped the limit from 40 to 4000 chars but that does not show the content if it includes an image

  7. qed2u
    Member
    Posted 4 years ago #

    Thanks guys

  8. chinmoy29
    Member
    Posted 4 years ago #

    yes. It's not showing the image and video properly. if you use the_content() function then you will get the full post.

  9. blahblahbecky
    Member
    Posted 3 years ago #

    Hi,

    I'm experiencing the same problem. I've replaced all instances of 'the_excerpt' with 'the_content' in the loop.php file but am still only getting excerpts.

    I've cleared my cache just in case but it's not working. Any suggestions anyone?

Topic Closed

This topic has been closed to new replies.

About this Topic