Hi everybody, I have a problem regarding shortcodes with both my solving approaches not working:
I would like to make my shortcode add an iframe, which can float besides other iframes, but adds a new line after/before every other content. For this purpose I would like to either:
- check if the instance of inserted shortcode is the first or the last one, and add a clearfix accordingly. I haven’t been able to find a possibility yet to do so directly.
- access the page content as a string to search it and figure out that way, if the current instance is the first or last time the shortcode is used (using for example a specific id as a shortcode parameter to identify the current one). Unfortunately I have not been able to access the content by .Page.Content even though .Page.Title for example works.
I hope this is understandable. I am also interested in other solving approaches. Thanks for any help!