• Hi great community,

    I am trying to automate Mailchimp with my Blog posts. Basicly when i publish a new post all members will be informed. On MailChimp side i’ve set up everything. But beacuse of i have no description in my post it pushes the full content of my blog to the mail body.

    My question; is there any way to fill description with character count option. For example just write 300 characters of my post to the mail body?
    Or is there any way to manually set the description for each blog post?

    Thanks from now.

    • This topic was modified 3 years, 6 months ago by ardeth.
Viewing 2 replies - 1 through 2 (of 2 total)
  • There is a filter ‘the_content_feed’ that you could use to truncate the content

    https://developer.www.ads-software.com/reference/hooks/the_content_feed/

    an example (untested) would be

    add_filter("the_content_feed", "r222222_feed_filter");
      function r222222_feed_filter($content)
      {
        return substr($content, 0, 300);
      }
    Thread Starter ardeth

    (@ardeth)

    Thank you Allan,

    I’ve tried few things but in after that i realize that truncating the contect with character count is not very suitable for mailing tho’. I found another option which is built-in.

    In terms of reference to people who have a similar request in the future; enabling “Summary” in “Screen Options” menu item on the top of the page is giving an option to write a custom summary of the realted post. So this also is used by RSS “description” tag.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom RSS descriptions’ is closed to new replies.