Support » Plugin: EG-Attachments » Multiple shortcodes on a page?

  • wtmann


    You can’t use multiple shortcodes on the same page even when the parameters are different (es. tags, title, etc.). Only the first shortcode gets detected and it is then repeated on the page various times (the number corresponds to the number of shortcodes on the page). However, each repetition has the correct title: only the attachments listed are the same as the first shortcode. Desired behaviour?

Viewing 2 replies - 1 through 2 (of 2 total)
  • wtmann


    I found a solution to this problem. It seems like the field $this->attachments is not getting reset after showing a shortcode. I modified the file and inserted the following


    right before


    in the function get_attachments. Afterwards, everything functions as it’s supposed to.

    Plugin Author emmanuelg



    I am preparing a new version including the ability to display several shortcodes in the same page.

    You can test the beta by downloading the beta version.


Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Multiple shortcodes on a page?’ is closed to new replies.