Post Types Extension

You would like WP/LR Sync to automatically create pages/posts for you with your collections/galleries (check Sync with Pages or Posts). Or you installed a beautiful photography theme and you would like to synchronize your folders and collections in Lightroom to it (go to Sync with a Photography Theme). The Post Types extension should be able to help you do this right away. Note that you can ask the developers of your theme to look at the current page and they should be able to help you.

This tutorial contains 3 parts :

  1. Sync with Pages or Posts
  2. Sync with a Photography Theme
  3. Ordering images (within a collection)

Another piece of advice. Go for a simple gallery system, not a gallery system with too many options, you will probably always regret it (even though it might look interesting at the beginning). You will never be able to move away from it. Whatever gallery system you are using, make sure it uses the standard WP Gallery made naturally by WordPress. I also made a gallery system that is called Meow Gallery that works this way, clean and simple.

1. Sync with Pages or Posts

The theory is very simple, and you need to get the Post Types extension as shown below. You can pick either Post or Pages, but Pages are more “static”, as Posts are for news, blogging, etc. This is an usual configuration.

Post Types Configuration

Then, on Lightroom, you can start creating folders and collections, they will be also created on your WordPress accordingly.

Important note: don’t forget about Smart Collections in Lightroom πŸ™‚ Many photographers want to make a website with one page for the latest photos, and pages that shows photos based on specific tags/keywords, locations, or else. You just need to create a Smart Collection in Lightroom and it will be sync to your WordPress.

2. Sync with a Photography Theme

You need to know how your theme operates. There are 3 mains things you should know: the post type, the taxonomy and how the data about your collection of images is stored. The taxonomy is not mandatory.

Post Type and Taxonomy

The most important thing to know is to which post type in WordPress you need and want to link your collections in Lightroom. In WordPress, the default post types are the Posts and Pages. If you see any Galleries, Portfolios, Albums or anything similar, they have been added by your theme or a plugin.

For example, by installing the Tripod theme (CosmoThemes), I can notice that this Galleries menu was created. This is a post type. By clicking on Galleries, I can see that the URL is /wp-admin/edit.php?post_type=gallery. The real name of this post type is therefore gallery.

Above, we can also see Category and Tags. Those are taxonomies. It’s up to you to use this or not, this is not mandatory, but if you use folders for your collections in Lightroom, your might want to use those taxonomies as your folders. Here, Category makes more sense. By clicking it, you can see that the URL is /wp-admin/edit-tags.php?taxonomy=gallery-category&post_type=gallery. Your got your taxonomy, it is gallery-category.

At this point, it is important to note that you could simply use your Posts are your post type (post) and Categories (category) as your taxonomy.

How is it stored?

You need to find out how the collections of images is stored by your WordPress. This part is a bit technical, so you can try to find it, you can hire me to do it for you (it is part of the Support for WP/LR Sync) or ask your developer. As of today, the Post Types extension can handle four methods: WP Gallery, Array in Post Meta, Array in Post Meta (Imploded) and Array of (ID -> FullSize) in Post Meta.

1. WP Gallery

In the standard Posts, you probably noticed that you can create/insert a gallery. It’s simple and works very well. This is a WP Gallery. Many themes are using this. Here is an example of how a WP Gallery looks in the editor.

In my opinion, this is the cleanest way to create galleries in WordPress because it it standard. Anytime you like, you can change your theme and the galleries will look different, but the way they are created and handled technically-speaking are always the same.

2. Array in Post Meta

Sometimes, it happens that themes (or plugins) prefer to use their own way of storing data. In that case, they normally use an array of Media IDs (that represents your collection) in a post meta, also known as a custom field (more about it here: Now, you need to find out what is the name of this custom field.

For this, there are a few ways. The first is to edit your post type (gallery, post or anything else), open the Screen Options at the very top and enable the Custom Fields. This will display the fields (post meta) used by the current post type you are editing. If it’s not displayed, you are out of luck.

It’s better to ask your theme for guidance at this point, and you can tell them the URL of the current page, they will understand your issue. If you want to look by yourself a bit more, you can check your database, more specifically the postmeta table. This is difficult, so I guess you know a minimum about database if you want to do this. In this table, the post_id corresponds to your post type, so you can filter this table by the post you are looking for. You might already see an interesting meta_key. In meta_value, if you have something looking like an array of Media IDs, there is a big chance that it might be it. In the case of the Tripod Theme, I can clearly see that _post_image_gallery is used. That’s it.

For instance, it is used by the Tripod Theme.

3. Array in Post Meta (Imploded)

Similar as Array in Post Meta except that the data will be stored a a string instead of a pure array. For instance, it is used by Kinetika Theme.

4. Array of (ID -> FullSize) in Post Meta

Similar as Array in Post Meta but the way data is stored it a bit different. It will not be an array of Media IDs but it will be an indexed array that uses Media IDs as indexes, and the URL to the Media as values. For instance, it is used by Photography Portfolio.

Setting up Post Types

Make sure Post Types is enabled in the WP/LR Sync > Extensions. Then you have access to the WP/LR Sync > Post Types menu. With all the information you got before, you should be able to set up everything accordingly. Start with the Post Type, the Mode, and the Post Meta if required. Save. Then you will be able to link a folder to your taxonomy. Save. Then you are all set. You can try to create a collection in LR. Check if the taxonomy (category or else) is created. In LR, drop an image in it, and Publish. Check in your post type in WordPress, the image should have been added.

WP/LR Sync stored all the folders/collections you have created before so you can go in Extensions and click on Resync with Extensions. This is create everything. When you switch your theme for another one, you can Reset with Extensions, that will clean your current database from this, switch to the new theme, set everything up again and Resync with Extensions. That’s all, WP/LR Sync keeps all your hierarchy clean and nice in your WordPress.

3. Ordering images

This is supported by WP/LR Sync 3.x and above. You need to choose custom order in LR, and order your photos. If you add a new photo, everything will be re-ordered on the corresponding gallery/collection in WP. If don’t add any photo to add, right click on any photo in this collection and mark it as to be republished, then publish. This will force LR to trigger the re-ordering.

Custom Order Gallery

Need Help?

If you want me to help you with finding the right settings or adding support specifically to your theme, it’s a lot of time for me to spend so please check the Support.

  • George Cook

    I was following along just fine with how to use WP/LR while describing its use with Tripod. That is the template I am using.
    When you went off on finding what Post type was involved you totally lost me.
    I think the tutorial would make more sense, at least for me, if you were to follow through on how to use your plugin with that template, and the taxonomies your describe. I’m not a geek, heck the word taxonomies alone make my head spin. Categories and folders I can understand.
    Seeing the complete workflow for one template in a tutorial would seem to make more sense and give a better overview of the whole process.

    • The problem is that everyone is using a different theme, and the process is very different. So I tried to speak for everyone at the same time, which is really difficult knowing that everyone has a different level of understanding on technical matters. Indeed Post Types and Taxonomies are weird terms (for a developer as well) but it’s very important to know what they are in WordPress. It seems like I fail to explain it here πŸ™‚

      To which line do you have difficulties to follow? At which point? I can try to enhance this tutorial with your help, and of course at the end you will understand exactly why and how you got the settings πŸ™‚ That’s the goal.

      • George Cook

        I get to “At this point, it is important to note that you could simply use your Posts are your post type (post) and Categories (category) as your taxonomy.”
        And then have no clue what to do.
        But now “hidden” down below that line is “For instance, it is used by the Tripod Theme.” That is above the Imploded explanation but upon rereading it refers to the “Array in Post Meta” Jeez, that is a confusing term. I will dedicate today trying to figure that out, but I would much rather be working on my photos.
        I think hoping for folks to understand the “why” is not necessary. The “how” is what we (I) need. I can appreciate that with all the variables in templates there are many routes to how.
        I can understand an if-then type explanation, preferably in a flow chart/diagram type format.
        Perhaps if folks see a specific step by step flowchart for a certain template, and they the are having difficulty using a different one, they can participate in helping develop a flowchart for their specific template.
        Perhaps template developers could participate as well.
        I totally understand how developing documentation for this type of product is often harder to write than the code itself. My dad was involved in MIC projects and he often said that half the budget for some fancy gizmo was writing manuals for the enduser to be able to get it to work. There are lots of great plugins and templates out there with abysmal documentation.

        • George Cook

          Also possibly two levels of tutorials, one for users, one for developers. Giving a link to a doc on the wp codex is just more confusing to a non developer.
          Endusers/photographers just want it to work, how it works is irrelevant.

          • George Cook

            FYI clicked on the “click here”
            “There is an important tutorial about this extension. Please check it here: Post Types Extension.”
            In the “Post Types Extension | WP/LR Sync”
            Extension and got a 404
            My guess is that it is this page.

  • George Cook

    Lets try this-
    For the Tripod Template I want to link my specific Lightroom Collections, in Collection Sets to specific Galleries in Tripod.
    What are the setting in WP, Tripod Template, WP/LR, and Lightroom I need to accomplish this task?
    Perhaps a screenshot of the specific settings, in the order they need to be completed, would be helpful.

  • Hi, i test your plugin and it works. But i use a posttype made with toolset. This posttype use the featured image as large image and the category and tags to sort posts/ images. I will filter the archive with category and like to show all entries.

    Is it possible to use the sync plugin with this? I like to make a collection (category) and in this i like to drag the images. After publish all images should have a single post. I test and i can only drag the images in a folder. This folder makes the post with all images as gallery. This is not what i like to do.

    • Hi Ronny! So basically, each photo = a post (of the post-type made by toolset), the collection in LR = category for this post-type?

      Be careful with the terms πŸ™‚ When you mention you drag images in the folder, that’s actually a collection πŸ™‚ Folders contains collections and folders. Collections contains photos (in LR). But I think I see what you mean and it’s not possible yet through this extension, I probably need to work on another one for this purpose (the options would be too different).

      • Hi, it`s real pity. In this way it will be possible to create an own gallery system with all possibilities to filter and show images in the way i like. Is this planed? With the plugin currently i can create new collections with only one image. In the tamplate i show only the featured image and this works. But it looks ugly with many images/ collections.

        • I spent 20 minutes trying to understand what you want to do πŸ™‚ I don’t really know. Can you try to explain what you would like to have on your website? What do you want to achieve?

          To me, it sounds like you want to add categories/tags in the Media Library, and have a big, only one gallery on your website with tags/categories filters, right?

          • Good Morning ;o) What i like to do is: First create a post type with an featured image, title, tags, category and description. Now i like to have a archive with category and tag filters. This works with toolset.

            But now i like to upload from lightroom. This works with your plugin. But i dont like to make wp-gallerys. I like to make an post for every single picture with tags and under a category or with more than one category.

            This should be a picture portfolio. Currently i use nextgen. But i will make my own design and functions.

          • Ok, I understand πŸ™‚ Have a look at the settings in the Post Types extension now.

            Basically, instead of this section:
            COLLECTION (LR) β†’ POST TYPE (WP)

            You would like those two sections:
            PHOTO (LR) β†’ POST TYPE (WP)
            COLLECTION (LR) β†’ TAXONOMY (WP)

            Like this, right?

          • Yes this is right. But is this possible?

          • It is not possible right now, I need to work on the option, it’s a few days of work. As for now, you are the only user interested (there was another one but he realized that he could do it another way, with the current available options), so it’s a bit hard for me to make it priority :/

          • Baghuis

            Hi Jordy, I too want this, so I second Ronny’s request. One photo in LR syncs to one post in WP. The LR collections sync to WP categories. This will allow single image portfolio posts to be handled by grid plugins (like The Grid) and themes (like X theme: These grid plugins can filter by category.

          • Baghuis

            And it would be even better (cherry on the cake) if I still would be able to sync multiple photos to one post. But that may be asking the impossible πŸ™‚

          • I didn’t knew there was theme using this kind of configuration. Would you mind contacting me directly? Then I would like to work with your themes and see how I can integrate this perfectly πŸ™‚

          • Hi, are there news about it? It will be great ;o)

          • Not yet, I am focusing on other features, either based on me being hired to work on them hard, or because so many people are asking for them πŸ™‚ But it will come.

  • karmamole

    Hi πŸ™‚ A couple of questions:

    1) Would this plug-in work with Easy Digital Downloads? Can I upload my images through lightroom and have them show up as purchasable downloads in EDD? Would the plug-in also allow me to set the ‘downloadable file’ to the full size image?

    2) I use a plug-in called Easy Watermarks to auto-generate a watermark whenever I upload a new image into WordPress to present on my site, if I upload using your plug-in would it bypass the easy watermark process or work fine with it? I can’t just upload watermarked images since I need the full size image to be without a watermark.

    If these things would work together it would make my life a LOT easier, I’m also sure that streamlining this process would be useful for a LOT of other users!

    • 1) Hi! I don’t use EDD, I actually wanted to try their plugins for compatibility purposes but I need to pay it seems. Which plugins of EDD are you using? It should work, but I never used it.

      2) I am not sure, you should try the trial version of my plugin to check if that works. That would be an interesting thing to try. I agree with you, I am sure many users are looking for such a solution to sell their photos. Do you mind contacting me directly?

      • karmamole

        Hi πŸ™‚

        1) The basic plug-in is free – so it’s easy for you to try it out!

        2) Sure, how?

        • 1) Yes, but basically that would work, I am pretty sure. I would need to test a lot more than just the free plugin to make sure we can have a great environment with everything the photographers needs, which is either sell the digital photos (protected with watermark, sold without) or physical prints. I need EDD to help me on this and provide me access, or to find a client willing to hire me to explore the options and really look into the whole solution and experience it.

          2) You can contact me via Contact in the menu. You can also install my plugin, EDD, and see how it works for you πŸ™‚

  • Magnus


    thx for the really good app. i try to sync with my “photo me” theme portfolios but donΒ΄t find the right settings. The only thing i donΒ΄t know is the post meta type therefore and may be (if there is a difference to the setting for galleries) the mode.

    i hope you can help me soon.

    best wishes

    • Hi Magnus! Unfortunately that takes me a lot of time to analyze, which is why I made the plugin cheaper and have paid support for this. I need to install then check the theme (so I need the authorization from the author to use it for free, or with your license) to find the right settings, then additional development if it doesn’t work. Please check the last paragraph of the current page. Cheers

  • Julien Ferrandez

    Hi, here is the copy of the mail I just sent to the author of the theme I am trying to use, and here is for you the link to the tutorial of the theme I’m talking about

    Here is the mail, thank you to let me know if you can help in any way :

    As a photographer willing to manage his content accurately and in a simple way, I use the WordPress / LightRoom synchronization (WP/LR Sync)​ plugin. My galleries are automatically generated by an extension of that plugin (link in “related URL”) , as mirrors of collections I made in Lightroom.

    Great way of working to manage my pictures. The problem is that the images of that galleries are not displayed in the “Gallery images” window specific to your theme (the one with the blue bar “upload images”), as we can see on your tutorial about “Setting up Galleries”.

    As a consequence, images are not seen by your template, the gallery is considered empty, and no images are displayed on my website.

    Is there a way to make the things work properly or is the extension of the plugin impossible to use with your theme ?

    Am i obliged to make my galleries by hand ?


    • Hi Julien! Yes, this is good, but you should also mention that the Post Types extension has currently 4 different ways of syncing the galleries, so it is not only through the shortcode (“How is it stored?”). You should give the theme author the link to the current page and they should be able to help by giving the name of the custom meta they are using to store those images. Then it should be okay πŸ™‚

  • Brendan James

    Hi I just wanted to share my experience with “WP Real Media Library Plugin” for which documentation seems to be missing. – After bumbling around for an hour or so trying to get my collections to represent themselves as folders in my media library – I found the actions tab in the WP/LR extensions panel and clicked “re-sync with extensions – Voila! All my uploaded photos shifted into the corresponding folders that mirror the collections in Lightroom! bravo

    • Yes, that’s right, the first time you need to sync RML with WP/LR Sync with the data from the start, so Sync Extensions it’s what users need to do πŸ™‚

  • Brendan James

    Question about “Post types extension” how do I get the plugin to output single posts with single featured images? i.e which mode / settings would I use? Array in post meta?

    • In your case, you don’t need any method, you just link the LR Collection to your WP Post in the Post Types Extension. Then in LR you can drop a photo in a Collection, that Collection will create a WP Post and will attach that photo automatically and set that image as the Featured Image, it’s by default. Unfortunately, the plugin will also create a gallery or an array, this is up to you, maybe I should add “Nothing” to the options πŸ™‚

      • Brendan James

        Thanks for your response – so from my understanding will I need to create a separate collection for each image to create corresponding single image posts? I’m looking for a way to create a bunch of single image posts that I can use in a web store with the ability to filter by keywords set in lightroom. I have a feeling I can do this with your plugin – and minimal time spend editing each post individually in wordpress – it would be a real time saver! thank you!

        • For this to be possible with the Post Types extension, yes πŸ™‚ The other idea would be to create a special/magic collection on the Lightroom side called something like “Images for Posts” and create an extension manually that would do this with every single photo added to that. This is entirely possible with the WordPress API but you would need a developer for it, so so hard to make but maybe 4-5 hours of work.

          • Brendan James

            At this point since I am trying to sell images that are all the same price – I will try to use WP real media gallery to collect the images in a gallery from a LR collection and modify the wordpress .single post to display store / shopping cart button on the attachment page for each image – a little more limited but practical. If you could somehow integrate a “single image post” into future updates that that would be great!

  • Andrea Raisfeld

    Hi Jordy! I have a question about syncing (LR) Keywords to (WP) Categories when Exporting through WP/LR Sync and using Post Types. If i have Parent/child Keywords In Lightroom, is there a way to keep the same parent/child categories in WP? As of right now, when i export, it just creates all the marked keywords as separate parent Categories. Any help would be appreciated.

  • Viv van der Holst

    Hi. I’m not sure if I’m posting in the right feed, (send me to correct link if it’s not)
    I have synced LR with my wordpress and use the RML plugin to have my hierachy show in media library. All working great and top marks on the plugin it’s awesome!!!
    The issue Im having at the moment and hoping someone can help fix:
    I created a collection in LR and later deleted it from LR publish service, but it left behind the folder in the Media library and can see it even tho there are no images and no longer exists in LR. How can I get rid of this? If i keep deleting things over time the empty folders will build up and negate the fact that Im using this awesome sync system to keep things clean and tidy in WP.
    I’m sure I’m just doing something wrong.
    Thanks in advance

  • Mike Walker

    Hi, I post galleries using shortcode within a post using the format:
    [gallery type="rectangular" link="file" ids="xx,xx,xx"]
    Is it possible to setup one of the WP/LR extensions to post using this format?
    Kind regards,

    • Hello! If you use the Post Types extension, you will need to edit the gallery shortcode, add those attributes (type and link) and the ids will still be updated automatically, that’s no problem πŸ™‚ Alternatively, you can also use the attribute wplr-collections=’…’.

  • hotel

    hi i have just purchased wp/lr paid in full got the License
    Key copied and pasted it but it says its not registered am i doing something wrong

    • Hi, are you using a previous version of the LR plugin? Please make sure you have downloaded the latest one, from the Meow Apps Store.

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