Community Support Forums — WordPress® ( Users Helping Users ) — 2012-01-13T09:27:20-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=16835 2012-01-13T09:27:20-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16835&p=60435#p60435 <![CDATA[Re: Using short codes twice]]>
sub conditions work by using
Code:
[_s2If.....]content[/_s2If]


I am getting old.....

Statistics: Posted by benchefe — January 13th, 2012, 9:27 am


]]>
2012-01-13T07:12:06-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16835&p=60425#p60425 <![CDATA[Using short codes twice]]> long time no see :)

I am working on my new wordpress installation.
Right now I am trying to use a table, surrounded by the [s2If is_user_logged_in() ] table [/s2If].
Now I am using "ccap" conditions:
Code:
<table width="600" border="0" cellspacing="0" cellpadding="0">
<tr>
    <td width="20">3.</td>
    <td width="250">Die Lip-Rolls</td>
    <td width="60" align="center">video</td>
    <td width="72" align="center">Anfänger</td>
    <td width="58" align="center">4,99 €</td>
    <td width="110" align="center">[s2If current_user_can(access_s2member_ccap_v1)] <span class="gruen">bereits gekauft!</span> [/s2If][s2If !current_user_can(access_s2member_ccap_v1)] <span class="lila">jetzt kaufen!</span> [/s2If]</td>
  </tr>

So short codes appear twice...( a kind of double condition).
This causes an error, cause parts of my table are displayed for non logged in users as well...
Is this possible in general?

By the way...
I am working on a translation for german users :) maybe finished in a few days :)

Greetings

Statistics: Posted by benchefe — January 13th, 2012, 7:12 am


]]>