Shortcodes for multiple galleries

If you have a bunch of galleries and want to use the shortcode to link to each specific gallery in a post, and you get the same gallery every time no matter what post. For example your shortcode = my-gallery and shortcode = another-gallery would bring up the same gallery.

It is possible that you are using wrong value in the shortcode. It is necessary to insert "post id" instead of "post slug" in the shortcode (ie. numbers, not letters).

To fix this go to the page of the single gallery editing page in your admin panel and there will be the path like "wp-admin/post.php?post=1784&action=edit" in the line of the browser, so 1784 it is your "post_id".

 

Have more questions? Submit a request