• Resolved samoreen

    (@samoreen)


    Hi,

    Thanks for the featured image and excerpt placeholders.

    According to my tests, it seems that the “read more” link is output only when using {{post_content}}, not when using {{post_excerpt}}.

    Moreover, the “Click here to read more” text must be translated in the source code. This can be fixed but the next release will overwrite the fix.

    Thanks.

    Patrick

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter samoreen

    (@samoreen)

    Also, it seems that sometimes, {{post_content}} doesn’t show anything from the post content, only the “read more” link.

    Patrick

    Thread Starter samoreen

    (@samoreen)

    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

    Thread Starter samoreen

    (@samoreen)

    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

    Plugin Author vandestouwe

    (@vandestouwe)

    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?

    Thread Starter samoreen

    (@samoreen)

    > 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.

    Plugin Author vandestouwe

    (@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?

    I will do some testing on custom post not having post_content

    Thread Starter samoreen

    (@samoreen)

    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.

    Thread Starter samoreen

    (@samoreen)

    Explicitly setting the number of characters fixes the “post_content” problem.

    Thanks for the quick answer.

    Plugin Author vandestouwe

    (@vandestouwe)

    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

    Plugin Author vandestouwe

    (@vandestouwe)

    I consider the empty character field as a bug so that will also be fixed in the next version.

    Thread Starter samoreen

    (@samoreen)

    Excellent ! Again, thanks a lot for the high quality support.

    Patrick

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘{{post_excerpt}} issue’ is closed to new replies.