Shortcode only run on one post per page?
-
I am dealing with legacy code here so I can’t really alter the shortcode – only the code that parses it out.
I have the following shortcode:
[gallimg:LARGE_FULL_URL,THUMB_FULL_URL,TITLE]
I wrote a plugin to generate a gallery of each image and strip all the breaks it generates when removing them
It works fine, but for the first post only. On the post listing page, only the first post will show the gallery and the others just show nothing (all shortcode and breaks are stripped).
What am I doing wrong???
The code was copied from another plugin and I tried to hack it in a while back (for the first version of the site, I don’t really know what I’m doing with the shortcode parsing… as you can see) and now I know how to use the actual gallery… but I can’t go back and edit all the posts – they need to stay as is.
- The topic ‘Shortcode only run on one post per page?’ is closed to new replies.