Are you making/customizing your own theme or you are a theme developer for WordPress? Would you like to give to your users the chance to synchronize and manage their photos, galleries, albums (or whatever they are called) from Lightroom? That is very easy to do with WP/LR Sync. This plugin supports naturally synchronization of the photos with the Media Library and with your post type and taxonomy through the extensions. There is a plugin for WordPress and another plugin for LR. On LR, the plugin allows the users to create Publish Services that will connect to WordPress websites (please check the tutorial).
A few extensions are available in the core of the plugin, others are available on GitHub, on the WordPress repository or even directly in the themes themselves. I recommend theme developers to add those features and additional support in the theme directly, that will make our users’ lives much easier and magical 🙂
Below, this is my website Haikyo.org. The folder/set in LR synchronizes to the standard category taxonomy and the collection to a standard post in WordPress. The images are synchronized with the Media Library and added to (or removed from) a WP Gallery in that post. Everything around that gallery is, of course, not modified by the plugin and the user is free to customize it.
This magic is done through an extension available in the core of my plugin, it is called Post Types Extension. This extension supports any post types and taxonomies and might be already working fine with your theme already if you are using standard WP Gallery. This extension also supports managing an array of Media IDs in a custom meta since many themes and plugins use that instead of a WP Gallery.
You can check my website to see what’s the result of doing this. Basically, I create my categories and post from Lightroom, synchronize, write the texts for my posts, publish… then sometimes work again on my photos, add new ones, change my watermark, change the post-processing. Everything is kept updated, I don’t even need to go on the WordPress side. It’s just one click away.
Automatically configure the Post Type Extension for your theme
It is pretty easy to explain to your users how to set up that extension, look at the screenshot below. There are actually a few more options than that but those are the main ones.
But it’s usually better to handle this configuration automatically by the theme. You can set the options directly using this code.
update_option( 'wplr_plugins', array( 'post_types.php' ) ); update_option( 'wplr_posttype', 'galleries' ); update_option( 'wplr_posttype_hierarchical', 0 ); update_option( 'wplr_posttype_reuse', 1 ); update_option( 'wplr_taxonomy', 'gallerycat' ); update_option( 'wplr_taxonomy_reuse', 1 ); update_option( 'wplr_taxonomy_tags', null ); update_option( 'wplr_taxonomy_tags_reuse', null ); // Set the mode // "WP Gallery": manage a WP gallery in the post (default) // "Array in Post Meta": manage a custom meta update_option( 'wplr_posttype_mode', "Array in Post Meta" ); // If using custom meta, this is how to set it: update_option( 'wplr_posttype_meta', "wpsimplegallery_gallery" ); // Hide the Extensions menu from WP/LR Sync // update_option( 'wplr_hide_extensions', 1 ); // Hide the Post Types menu from WP/LR Sync // update_option( 'wplr_hide_posttypes', 1 );
Extension for your theme
If your theme needs more than just that or if you are using something else than a simple WP gallery in a post type, you might need to copy/paste an existing extension and customize it in order that it works nicely with your theme. You can look here at extensions which have been created for two particular themes:
I can provide a free license for you as a theme developer and if you wish.