Title: create Photo Gallery from plugin code
Last modified: May 14, 2021

---

# create Photo Gallery from plugin code

 *  Resolved [Laegnur](https://wordpress.org/support/users/laegnur/)
 * (@laegnur)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/create-photo-gallery-from-plugin-code/)
 * Hello
 * I’m developing a custom theme for a client. We are using a custom post type to
   retrieve some data from another website. So I made a plugin to create the custom
   post type, and add the the data as new posts of this type. Now I need to add 
   a Photo Gallery, with the images I retrieve, to the content of this posts, and
   I need to do this from the plugin code. It’s possible to do this with your plugin?
   Can I create a Photo Gallery from source?

Viewing 1 replies (of 1 total)

 *  [Asya Gabrilyan](https://wordpress.org/support/users/asyag/)
 * (@asyag)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/create-photo-gallery-from-plugin-code/#post-14448071)
 * Dear [@laegnur](https://wordpress.org/support/users/laegnur/),
    Thank you for
   the inquiry.
 * You can use php code (call a function photo_gallery( yourShortcodeId )) to show
   the gallery.
 * Sincerely,

Viewing 1 replies (of 1 total)

The topic ‘create Photo Gallery from plugin code’ is closed to new replies.

 * ![](https://ps.w.org/photo-gallery/assets/icon-256x256.png?rev=2068745)
 * [Photo Gallery by 10Web - Mobile-Friendly Image Gallery](https://wordpress.org/plugins/photo-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/photo-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/photo-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/photo-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/photo-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/photo-gallery/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Asya Gabrilyan](https://wordpress.org/support/users/asyag/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/create-photo-gallery-from-plugin-code/#post-14448071)
 * Status: resolved