I have asked before but I have some more info now.
I have a plugin using shortcode and then a normal page that i use it on.
On the page this is what I have
<ul class="accordion"> <li> <h3 id="1">user1</h3> <div> [fetch-reviews id="1"][/fetch-reviews] </div> </li> <li> <h3 id="2">user2</h3> <div> [fetch-reviews id="2"][/fetch-reviews] </div> </li> </ul>
now it displays user1 and all the data from the shortcode, however it does not display user 2 and in fact the shortcode has somehow managed to completely remove the entire li so what gets printed is
<ul class="accordion"> <li> <h3 id="1">user1</h3> <div> ...the data from shortcode for user1.... </div> </li> </ul>
Now if I only print user2 it works so it’s not an error there, it’s simply that both cannot be displayed at the same time. very strange.
- The topic ‘shortcode plugin fails to show twice and removes html from page’ is closed to new replies.