• 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?

    http://wordpress.org/extend/plugins/eg-attachments/

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

    (@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 eg-attachments-public.inc.php file and inserted the following

    unset($this->attachments);

    right before

    return($output);

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

    Plugin Author emmanuelg

    (@emmanuelg)

    Hi

    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.

    Emmanuel.

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