• Resolved baszer

    (@baszer)


    For my website I ofter place movies. So no text, thats the reason that I place the whole post on my home page.

    But sometimes I have a long post, without any movies. Than I want 2 use the excerpt.

    So now my question, is it possible to have only for some pages a excerpt?

Viewing 5 replies - 1 through 5 (of 5 total)
  • You might be able to do this using custom fields.

    <?php if( get_post_meta($post->ID, 'long_post', true) ) the_excerpt();
    else the_content(); ?>

    I would use Post Formats.

    For videos, use the “video” Post Format type, and then:

    if ( has_post_format( 'video' ) ) {
         the_content();
    } else {
         the_excerpt();
    }

    Thread Starter baszer

    (@baszer)

    thanks guys!

    Thread Starter baszer

    (@baszer)

    @esmi, i got it working now, but where can i add the “read more” button?

    Thread Starter baszer

    (@baszer)

    @all,

    this does also work:

    “Oh, why can’t you remain like this for ever!” This was all that passed between them on the subject, but henceforth Wendy knew that she must grow up. You always know after you are two. Two is the beginning of the end.

    <!–more–>

    Mrs. Darling first heard of Peter when she was tidying up her children’s minds. It is the nightly custom of every good mother after her children are asleep to rummage in their minds and put things straight for next morning, repacking into their proper places the many articles that have wandered during the day.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Excerpt post only for certain post’ is closed to new replies.