• Hi,

    I was trying to limit the display of a post on index.php by more-tag. In my theme the limiting is done by that:

    ($post->post_content, 200)

    That shows only 200 characters of a post. I want to display the post until more tag. Does anybody know how to do that? What do I have to write instead of 200? Or isn’t it that easy?

Viewing 4 replies - 1 through 4 (of 4 total)
  • <?php the_content(); ?> should do it if is about index file 🙂

    Thread Starter eike_in_canada

    (@eike_in_canada)

    Thanks. That worked. I was trying that before but I didn’t realise that I have do change the whole code phrase. I tried it with change “200” only. My fault 🙂

    Another question: In single.php the part of the post until more-tag should be displayed bold. I found a tutorial how to hide the stuff before more tag in single.php. Does anybody know how to bold it?

    Thanks

    Alwyn Botha

    (@123milliseconds)

    Thread Starter eike_in_canada

    (@eike_in_canada)

    Thanks, but this is not what I mean. This customizes the “Read More” itself. I want to format that text of the post that is used as a teaser via more tag.

    Example:

    “This is my post. <!–more–> And this is the rest of the text.”

    “This is my post.” should be shown on index.php, not bold. After clicking Read-more-button, the whole post will be shown. “This is my post.” should be bold here and the rest not bold.

    Thanks for your help.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Limiting posts by $post->post_content’ is closed to new replies.