• Hello,

    Today i want limited announce on site. I want to show 50 word’s. But, after limited wordpress showing more 50 symbols. Can you help with these?

    Code for limited:
    <?php echo wp_trim_words( get_the_content(), 50, ‘…’ );?>

Viewing 1 replies (of 1 total)
  • Are you referring to the length of the excerpt?

    If so have you considered the excerpt_length filter?

    Also if this is the case you can use get_the_excerpt instead of the content.

Viewing 1 replies (of 1 total)
  • The topic ‘Problem with announce’ is closed to new replies.