WP/LR Extensions

Extensions are the glue between WP/LR Sync and gallery plugins or the themes. However, you don’t need those extensions if you are only synchronizing with the Media Library. Make sure you also read the introduction on the main page of WP/LR Sync before reading this.

The extensions are available in your admin in WP/LR Sync > Extensions. You will see a screen that looks like the one below.


In the screen above, the Post Type internal extension has been checked. Notice the message at the top of the screen. This extension is loaded and working. Extensions can also automatically be created and loaded by a theme or another plugin, in that case, that message will also display that information.

Select one (or more) extension(s) and click Save Changes. Then click on Resync with Extensions. WP/LR Sync will share all the information (about the collections, folders, keywords and so on) to this extension and everything you need will be automatically created. Then, from now on, everything will be kept in sync through those extensions as well.

I noticed a few of my users were selecting all the extensions. Please note that you don’t need any extension at all for WP/LR Sync to work, you only need it if you want something more than just synchronizing with your Media Library. And if you do, you probably need one extension, and this extension is often Post Types.

An extension can add a menu to your WP/LR Sync menu so make sure you check it out. In the case of the Post Types extension (which is a powerful one), there is a new menu. Check the options for it. There is also a little presentation of this extension here.

Not happy with an extension? You can Reset with Extensions to remove all the data created by this extension, switch to another one, save, then Resync with Extensions again. It is very easy to switch between extensions (and therefore, to switch between themes or gallery plugins) with WP/LR Sync. That way, you can also test and play as many themes are you want without having to re-create everything by yourself.

Once you are happy with an extension, just forget about WP/LR Sync. It will keep your WordPress synchronized with your Lightroom naturally.

Internal Extensions are the ones directly available in the plugin. External Extensions are the one developed outside (which also means you can make your own one) and they support specific plugins and themes.

Internal Extensions

Post Types

This extension allows you to link and sync:

  • an LR collection to a WP post type (for example post, page, product, gallery, portfolio, etc…)
  • an LR folder/set to a WP taxonomy (for example category, tag, album, product type, etc…)
  • an LR keyword to a WP taxonomy

With this extension, you will be basically able to sync most themes’ post types and taxonomies automatically. Folders and collections from LR can create those post types and taxonomies and even re-use existing ones. It’s a very powerful extension so there is a special tutorial about it here: Post Types Extension.

Basic Collections

This extension creates a new post type called Collection. Your collections and sets will be replicated in in WP with the same hierarchy. The title will be kept synchronized the one you are using in LR. This extension is quite simple and is meant to be used as an example. You can look at its code and adapt it to your needs.

Real Media Library

Maybe you know the Real Media Library plugin, it is similar but better looking to WP Media Folder: it adds a way to browse the photos in a nicer way in the Media Library. This extension is directly shipped with WP/LR Sync so you just need to install Real Media Library plugin.

External Extensions

I don’t keep track of all external extensions but some people sometimes ask me for those. Also, I can’t provide support on this personally, so you need the help of a developer or of the original plugin maker.

  • WP Media Folder: This plugin is used to browse your photos more easily. It basically creates virtual folders and let you organize your Media Library. The plugin is on Joomunited.com. The extension is available on GitHub.
  • NextGen: Popular (but really ancient / not recommended) gallery plugin. The extension is available on GitHub. Since NextGen is a bit specific (~= old) and doesn’t use WordPress either naturally or properly, the extension might break at any time. I don’t recommend using it but feel free to give it a try (some of my users are actually using it).
  • Photo Gallery: I am not sure the extension is working but the code for it is on GitHub. Feel free to hack on it.

A few more things

I recommend you to use the gallery system shipped with the themes and/or in general to use the simple gallery shortcode available in WP instead of gallery plugins (avoid especially heavy un-interchangeable plugin such as NextGen). They have a tendency to do too much, not very well and before you know it you are stuck forever with something that is slow and not good. Keep things simple and clean.

You can create your own extension based on those previous ones. If you are a developer, it can be a lot of fun πŸ™‚

I like to collaborate with other developers to make things even more compatible. Today, WP/LR Sync is very mature and perfectly stable but of course, there is always room for improvement. Let me know if anything crosses your mind. I’ll be always here to help and make things better.

  • Hi Jordy, I have found and downloaded the PHP code for an external extension, but you don’t explain how to install these External Extensions. Can you please help?

    Second Question – much as I would love to abandon using NexGen Gallery and use only your product, there is one killer powerful feature that is missing: the ability to use Tags to dynamically create galleries. Here is my use case: I am putting together a web site with old family photos. I tag each photo with the name of the person that is in it (could be several tags for several people). I also tag with the time period of the photo. Then in NegGen Gallery I just insert Galleries for each Tag and assign them to their own Page. Now each photo can appear in multiple galleries, and as I add new photos, they are automatically added to the appropriate pages. Can you think of a smart way to accomplish this using just your products? If not, which Gallery product would you recommend? (I get the feeling you thing that Photo Gallery is better than NexGen Gallery.)

    Many thanks, David

    • I know we are now talking about this in 1-1 but I just wanted to give a quick reply here as well. I indeed think Photo Gallery is better than NextGen, truth is NextGen is an old system that doesn’t use the standard API for the media, which cause many issues with other plugins. Many users are really unhappy with it, and when I had a look at the code I was horrified. Plus the team behind it never wanted to collaborate with me in order to help their users (they wanted to buy my plugins twice but never replied when I told them we can collaborate instead). Really not a good state of mind…

      The way you think of this is a website that is build around the Media Library. A standard website is built around post types (which are, posts, pages, etc…). Themes usually create more post types (portfolio), taxonomies (tags, for those portfolios). But what you need is to have only the Media, and taxonomies for those Media (Tags, and why not, Collections, since we have them in LR). I think we can find a clean way to do this, though a lot of programming is required πŸ™‚

  • Trevor

    Have you worked with the “Real Media Library” plugin? I’d be very interested in getting the WP/LR Sync to automatically updated folders in this plugin. I believe this would be similar to the “WP Media Folder”.

    • Yes, normally it works, the extension for RML is shipped with WP/LR Sync now, so you can try it. The extension was also developed by the creator of RML.

  • Andrea Raisfeld

    You mentioned the WP Media Folder plugin, which I think is great for organizing my photos. But is there a setting so that when you publish a Collection through WP/LR sync, it automatically creates/updates a Folder in the WP Media Folder? Would love for each LR Collection i have published to have it’s own folder in the media Library automatically, but right now they all get dumped into the general Media Library and i have to manually add them into folders.

    • Actually it is better to use Real Media Folder, as the developer of it also helped me on the extension and it is actually even shipped with WP/LR Sync πŸ™‚ Otherwise you can try to use the extension for WP Media Folder, through the link in this article, but I can’t actively support this extension. It’s on GitHub though and anybody is welcome to participate. But yes, if everything works fine, it is the way you described it.

  • rsmith4321

    I wanted to get away from using NextGen Gallery, however the Lightroom plugin I use to upload to NextGen will update the gallery order to whatever my order is in Lightroom. So if I change the order in Lightroom it will be reflected in my NextGen Gallery after publish. I’ve installed your plugin and real media library, I just assumed it would do this. However I can’t find a way to change the image order in Lightroom and have it reflected in a real media library folder. Is this possible?

    • Hello πŸ™‚ Totally understand you want to move away from this messy solution πŸ˜‰ WP/LR Sync keeps the ordering of your photos internally in WP but this feature is not always used by other plugins/themes through the extensions. You should ask the RML’s developer (Matthias) two questions: is ordering possible in his plugin? If yes, is he willing to add a bit of code in the WP/LR Sync extension for RML?

      • rsmith4321

        I’ll ask, I’m also using it with justified image grid which works well with RML. I notice there is an option in RML to order by ID ascending, this seems to hold the order that is in Lightroom for the initial upload. However if the photos are rearranged in the Lightroom collection this is not reflected in RML. It used to be in NextGen. If you know of any way to do this even using something different than RML let me know, thanks!

  • march

    Hi Jordy, I just bought your plugin to test and so far so good, I can upload to the Media Library in WP without issues. I searched all over but couldn’t find the answer to this one quick question. All I really want is to select a few images and publish them from Lightroom which will then automatically create a published post on my WordPress site. I don’t need anything else. Is this possible with your plugin? If yes, could you point me to some kind of documentation? Thanks a lot.

    • Hi! Actually it’s not easy as this. You can create a gallery within a post and keep it synchronized, you probably found this in the doc already, but you can’t add photos directly as HTML in the post. The reason is that it depends of many factors (are you using a page builder, Gutenberg, standard HTML, which image) and it would be a mess on every sync (basically it’s impossible to determine what the plugin should do in that case). But users can ask a developers to create an extension for WP/LR Sync that fits their exact purpose.

      • march

        Ok, thanks for letting me know. Still a very useful plugin. I’ll check out the rest of your products. Ciao

I recommend you to use WPEngine or SiteGround. They are both excellent hosting services and work perfectly with all my plugins.