{"id":2975824,"date":"2012-08-17T16:52:38","date_gmt":"2012-08-17T16:52:38","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/plugin-groups-shortcode-boolean\/"},"modified":"2016-08-20T15:01:48","modified_gmt":"2016-08-20T15:01:48","slug":"plugin-groups-shortcode-boolean","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/plugin-groups-shortcode-boolean\/","title":{"rendered":"[Plugin: Groups] Shortcode boolean"},"content":{"rendered":"<p>I need to perform some simple boolean logic with shortcodes&#8211;specifically [group_member group=&#8221;Group Name&#8221;].<\/p>\n<p>I have 5 products: 2 simple, single-purchase products and 3 subscription products. I&#8217;ve assigned each a unique Group identity. I want each purchase to have a distinct message on the landing page after purchase.<\/p>\n<p>One subscription is a follow-on to one of the two simple products. So when the customer &#8220;upgrades,&#8221; she is in two Group: one of the simple product Groups and the subscription Group.<\/p>\n<p>So&#8230;<\/p>\n<p>Products 1, 2, 3, 4, 5<\/p>\n<p>Corresponding Groups A, B, C, D, E<\/p>\n<p>I need to be able to designate (A &amp; not C) and (A &amp; C) for the shortcode.<\/p>\n<p>The [group_member group=&#8221;Group Name&#8221;] shortcode works perfectly for the 2 simple products and 2 of the subscriptions, but when someone purchases the follow-on product, they see both the simple product message and the subscription message.<\/p>\n<p>https:\/\/wordpress.org\/extend\/plugins\/groups\/<\/p>\n","protected":false},"template":"","class_list":["post-2975824","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/2975824","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/2975824\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=2975824"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}