• I like many others have been having the issue where the default WP gallery is still showing instead of the Photospace gallery. When I looked into the code for photospace I saw that right under where they define the shortcode gallery there is another shortcode labeled “photospace_res” this means you can use [photospace_res] (this is for the responsive version, the regulary version of the plugin will be [photospace]) instead of [gallery] and it will work, and it does for me. It’s a little bit of a hack because this means after you use the wordpress gallery creator to generate something like [gallery size="full" link="none" ids="70,69,68"] you have to change gallery to photospace_res (or photospace for the regular plugin version) for it to work.

    Further Hacking
    That being said if you wanted to make your own shortcode you could add “add_shortcode( 'photospace', 'photospace_responsive_shortcode' );(without the double quotes around it) to the top of your function.php file inside of your theme directory. you can change ‘photospace’ to be whatever you want it to be i.g. gallery2, slides, gal, etc just make sure that you don’t use the same text as another shortcode or you will break it. also note that if you are using someone else’s theme and they ship updates on those themes it may erase your shortcode when the update is installed. Just add it again after the update and your are back up and running.

    hope this helps!

    https://ww.wp.xz.cn/plugins/photospace-responsive/

The topic ‘Resolved the default gallery issue’ is closed to new replies.