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:

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

With this extension, you will be basically able to sync most themes’ post types and taxonomies automatically. That taxonomies can create those post types / taxonomies and even re-use existing ones.

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 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.

External Extensions

I don’t keep track of all external extensions but some people sometimes ask me for those.

  • WP Media Folder: This plugin is useful to browse your photos more easily. It basically create virtual folders and let you organize your Media Library. The plugin is on Joomunited.com. Extension is available on GitHub.
  • NextGen: Popular (but really ancient / not recommended) gallery plugin. The extension is available on GitHub. This extension might require additional coding, in that case contact the NextGen team.
  • Photo Gallery: I am not sure the extension is working but the code for it is on GitHub. Feel free to hack on it.
  • CosmoThemes: The extension has been tested with the Tripod, Photomarkt and Triablo themes from CosmoThemes. Extension available on GitHub.
  • Pexeto: The extension has been tested with the Expression, Photolux and Story themes from Pexeto. Extension available on GitHub.

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.

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