Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: Trim blog page text. #119551

    Works perfectly! Thanks mate.

    in reply to: Trim blog page text. #119549

    Hi Devin,

    The problem is that when I implement this function in $current_post, that all the content in the site gets trimmed. Not only the blog index “preview” page. Where do I need to put this function? In loop-index.php right?

    in reply to: Trim blog page text. #119547

    I used this piece of code in includes/loop-index.php

    $current_post = wp_trim_words( get_the_content(), 100);

    in reply to: Trim blog page text. #119546

    Hi Ismael,

    Like I said in the previous comment, I know I can do that, but since I have more than 100 articles I need a kind of function to apply this to every article. For example lets say, trim the text after 100 words.

    I a piece of code, but it trims the whole blog article instead of giving a preview with a read more link.

    Could you give me advise how to integrate this?

    Thanks

    in reply to: Homepage is showing the full blog post of each post #57564

    Isn’t it possible to program a function somewhere? That the text gets trimmed after 200 words for example. Because I’ve got more then 80 articles and otherwise I have to edit all the articles with the <!–more> tag.

    Thanks

Viewing 5 posts - 1 through 5 (of 5 total)