Guys! How about conditional values in Message Template? π
i.e. If a value exists, add something before or after the macro/tag otherwise add something else... π
For example if you have a custom field coupon which may or may not exist for a post/product
So, the logic will be if coupon exists then add
π Coupon {cf:coupon}
Otherwise add nothing
Similarly, for WooCommerce products. If a product is on sale, display something like
π° Sale Price: {cf:_sale_price}
Otherwise display
π° Price: {cf:_regular_price}
Similarly if {tags} has value, add this
π· {tags}
Similarly for all other macros/tags
If you want that feature to be added to the plugin, write a review here. As soon as 5 π reviews reach 100, we will add the feature to the plugin! π
i.e. If a value exists, add something before or after the macro/tag otherwise add something else... π
For example if you have a custom field coupon which may or may not exist for a post/product
So, the logic will be if coupon exists then add
π Coupon {cf:coupon}
Otherwise add nothing
Similarly, for WooCommerce products. If a product is on sale, display something like
π° Sale Price: {cf:_sale_price}
Otherwise display
π° Price: {cf:_regular_price}
Similarly if {tags} has value, add this
π· {tags}
Similarly for all other macros/tags
If you want that feature to be added to the plugin, write a review here. As soon as 5 π reviews reach 100, we will add the feature to the plugin! π
WP Telegram
With WP 5.0, many users may face the double posting issue. You can avoid this issue by simply disabling the ON/OFF Switch on Post Edit Page in Post to Telegram settings
If you need that Switch on Post Edit Page, then you can also avoid this issue by enabling the delay option. Even 1 minute delay should work.
We are working on an update to fix the issue, but it's the temporary workaround for the problem.
We are working on an update to fix the issue, but it's the temporary workaround for the problem.
An update to WP Telegram has been released which fixes a few issues created by WP 5
Update and enjoy :)
Update and enjoy :)
Are you excited for conditional logic in Message Template of WP Telegram?
Final Results
97%
Yes
3%
No
WP Telegram
Are you excited for conditional logic in Message Template of WP Telegram?
There you GO!
WP Telegram 2.0.19 for 2019
π‘ Conditional Logic for Message Template π
Watch the video
Don't forget to write a review here
https://wordpress.org/support/plugin/wptelegram/reviews/#new-post
WP Telegram 2.0.19 for 2019
π‘ Conditional Logic for Message Template π
Watch the video
Don't forget to write a review here
https://wordpress.org/support/plugin/wptelegram/reviews/#new-post
YouTube
WP Telegram | How to use Conditional logic for Message Template?
SYNTAX: [if~condition~][~consequence~][~alternative~]
Examples:
1. [if{tags}][π·οΈ {tags}][]
2. [if{cf:_sale_price}][Sale price: {cf:_sale_price}][]
3. [if{cf:coupon}][π³ {cf:coupon}][]
4. Price: $[if{cf:_sale_price}][{cf:_sale_price}][{cf:_regular_price}]β¦
Examples:
1. [if{tags}][π·οΈ {tags}][]
2. [if{cf:_sale_price}][Sale price: {cf:_sale_price}][]
3. [if{cf:coupon}][π³ {cf:coupon}][]
4. Price: $[if{cf:_sale_price}][{cf:_sale_price}][{cf:_regular_price}]β¦
What about Conditional Logic in Message Template? π
Final Results
39%
I tried and I like it π
0%
I tried but didn't like it π
55%
I didn't try yet, but I'm excited π
7%
I didn't try yet and I'm not interested βΊ
Hello everyone! Hope you guys enjoy and like WP Telegram. Why not write a review and encourage us to add more cool features?
https://wordpress.org/support/plugin/wptelegram/reviews/#new-post
https://wordpress.org/support/plugin/wptelegram/reviews/#new-post
Who is going to complete the 100 five stars? π
Do it here π
https://wordpress.org/support/plugin/wptelegram/reviews/#new-post
Do it here π
https://wordpress.org/support/plugin/wptelegram/reviews/#new-post
Hello folks! With todays update of WP Telegram Login
> The login button is now available as a Gutenberg Block π
> A message can be displayed to the users if their ISP blocks Telegram π
> The login button is now available as a Gutenberg Block π
> A message can be displayed to the users if their ISP blocks Telegram π
π‘ WP Telegram 2.1.0
Enhancements
* Improved the template conditional logic
* Made delay to be more granular - can be set in half a minute steps
* Added option to allow newlines in
* Added option to send
Bug fixes
* Fixed the issue with scheduled posts not being sent to Telegram
Enhancements
* Improved the template conditional logic
* Made delay to be more granular - can be set in half a minute steps
* Added option to allow newlines in
{post_excerpt
* Added option to send
{categories}
as hashtagsBug fixes
* Fixed the issue with scheduled posts not being sent to Telegram
Don't forget to leave us a review here π
https://wordpress.org/support/plugin/wptelegram/reviews/#new-post
https://wordpress.org/support/plugin/wptelegram/reviews/#new-post
π‘ Pro Tip
With the latest version of WP Telegram , you can use
For example, if you use this:
With the latest version of WP Telegram , you can use
{remove_line}
in Post to Telegram template conditional logic to remove the entire empty line if the value for the macro/tag is empty. πFor example, if you use this:
[if{tags}][π· {tags}][{remove_line}]
then if the post has tags, they will be shown in that line like π·
#sometag #anothertag, otherwise the whole line will be removed from the template. π