Shortcode looping/ html tags
-
Hello!
Details:Name: JFantasyBooks
WordPress Version: 4.6.1Problem:
I have an issue with activating a shortcode within the ‘<‘, ‘>’ tags in wordpress.
Shortcodes themselves work, for example: <div [shortcode]> is fine.
Problem comes when the shortcode I have has a looped output, and to activate it, I need something like:
[shortcode-activate]
[shortcode 0]
[/shortcode-activate]. or else by itself, the shortcode results shows nothing.
In a normal circumstance, it works, but when I do this:
<tbody>
[shortcode-activate]
<tr value=[shortcode 0]>
<td class=somevalue></td>
<td>[shortcode 1]</td>
<td>[shortcode 2]</td>
</tr>
[/shortcode-activate]
</tbody>Only shortcodes 1 and 2 are activated. shortcode 0 just shows up blank.
**Thing is, I used the views plugin before, and when I used their shortcodes, which looped using a class <wpv-loop></wpv-loop>, it worked. The only difference between me and them is I have a shortcode to loop it. So, I know it can work.
And it’s not just this:
If I put the shorcode within this: [shortcode-activate][shorcode 1][/shortcode-activate]
only shortcode 1 initiates. Shortcode 0 comes up blank.
Any thoughts?
I would appreciate it a lot.
The topic ‘Shortcode looping/ html tags’ is closed to new replies.