{"id":182,"date":"2019-05-19T13:07:21","date_gmt":"2019-05-19T13:07:21","guid":{"rendered":"https:\/\/www.opinew.com\/help-center\/?post_type=ht_kb&#038;p=182"},"modified":"2021-04-02T00:37:05","modified_gmt":"2021-04-02T00:37:05","slug":"how-conditional-tags-work","status":"publish","type":"ht_kb","link":"https:\/\/www.opinew.com\/help-center\/knowledge-base\/how-conditional-tags-work\/","title":{"rendered":"What are &#8220;[[]]&#8221; conditional tags on Opinew and how do they work?"},"content":{"rendered":"\n<p>You must be aware of [[  ]] tags and how they can impact content on pages and emails:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>If ANY of the merge tags ({coupon_value}, {customer_name}&#8230; etc.) don&#8217;t exist, then the whole text inside the &#8220;[[   ]]&#8221; WILL NOT display.<\/p><\/blockquote>\n\n\n\n<p>For example we put a bit of text surrounded by [[ ]] in the default &#8220;Thank You&#8221; page template that your customers see after they leave a verified review:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">THANK YOU FOR YOUR REVIEW {customer_name}!\n\n[[ And here is a {coupon_value} coupon as a little thank you from us \nCode: {coupon_name} ]]\n\n\nThanks,\n{shop_name}<\/code><\/pre>\n\n\n\n<p>If you set up a coupon, then the text will display. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">THANK YOU FOR YOUR REVIEW Cathy!\n\nAnd here is a 10%OFF coupon as a little thank you from us \nCode: XDWE28SG\n\nThanks,\nOpinew Showcase Store<\/code><\/pre>\n\n\n\n<p>But if there is no coupon, {coupon_value} and {coupon_name} will be empty and THE WHOLE TEXT WILL NOT DISPLAY. You will only see:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">THANK YOU FOR YOUR REVIEW Cathy!\n\nThanks,\nOpinew Showcase Store<\/code><\/pre>\n\n\n\n<p>Magic! \ud83d\ude00 Enjoy!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You must be aware of [[ ]] tags and how they can impact content on pages and emails: If ANY of the merge tags ({coupon_value}, {customer_name}&#8230; etc.) don&#8217;t exist, then the whole text inside the &#8220;[[ ]]&#8221; WILL NOT display. For example we put a bit of text surrounded by&#8230;<\/p>\n","protected":false},"author":1,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":[],"ht-kb-category":[19],"ht-kb-tag":[26],"_links":{"self":[{"href":"https:\/\/www.opinew.com\/help-center\/wp-json\/wp\/v2\/ht-kb\/182"}],"collection":[{"href":"https:\/\/www.opinew.com\/help-center\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.opinew.com\/help-center\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.opinew.com\/help-center\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.opinew.com\/help-center\/wp-json\/wp\/v2\/comments?post=182"}],"version-history":[{"count":4,"href":"https:\/\/www.opinew.com\/help-center\/wp-json\/wp\/v2\/ht-kb\/182\/revisions"}],"predecessor-version":[{"id":1174,"href":"https:\/\/www.opinew.com\/help-center\/wp-json\/wp\/v2\/ht-kb\/182\/revisions\/1174"}],"wp:attachment":[{"href":"https:\/\/www.opinew.com\/help-center\/wp-json\/wp\/v2\/media?parent=182"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.opinew.com\/help-center\/wp-json\/wp\/v2\/ht-kb-category?post=182"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.opinew.com\/help-center\/wp-json\/wp\/v2\/ht-kb-tag?post=182"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}