Also, it seems that sometimes, {{post_content}} doesn’t show anything from the post content, only the “read more” link.
Patrick
I should have mentioned that I am testing using both “STC Basic E-Mail Template V2.1” and “STC Demo E-mail Template V2.0.”, not with my own template. Just to be sure I’m not doing something wrong.
In “STC Demo E-mail Template V2.0.” the link to the image is broken but that’s not a problem. But wit this template, the “post_content” part is also empty, even when the content text is very short. Only the “Click here to read more” link is displayed (it is functional, by the way).
Patrick
A few additional remarks if this can help…
1. I’m only notifying custom posts. They have nothing special but they are not regular posts.
2. When I say that the “post_content” part is empty, it’s not absolutely true. It contains only the “[…]” suffix.
3.The problem appears when the email contains a single or multiple posts.
I’m currently looking at the code in class-stc-subscribe.php but, although not obfuscated, it’s rather uneasy to read and therefore to understand. I’ll try anyway.
Patrick
Ok thanks for this the link to the image has changed to:
https://www.vandestouwe.com/wp-content/uploads/2020/10/Patersdorf.jpg
As for the_excerpt I choose not to include the read more link but that can be corrected
Your last remark on post content not there. Look at your character count in the settings what is the value of this setting?
> Your last remark on post content not there. Look at your
> character count in the settings what is the value of this setting?
I left it empty and therefore I’m using the default value (130).
> As for the_excerpt I choose not to include the read more
> link but that can be corrected
Yes, thanks.
As for Click here to read more not being translated: It is localized so it should be translated. What local language have you set?
I will do some testing on custom post not having post_content
-
This reply was modified 5 years, 3 months ago by
vandestouwe.
As for Click here to read more not being translated: It is localized so it should be translated. What local language have you set?
Ah, OK. My WP is in french but I’m using the english version of Windows. That’s probably the cause of the problem. I’ll check this on another system.
Thanks.
Explicitly setting the number of characters fixes the “post_content” problem.
Thanks for the quick answer.
You can use local translate to test on your own system. STC has German, Chinese, Japanese and Dutch available as global languages. All others languages depend on the local translation files of the plugin
I consider the empty character field as a bug so that will also be fixed in the next version.
-
This reply was modified 5 years, 3 months ago by
vandestouwe.
Excellent ! Again, thanks a lot for the high quality support.
Patrick