Post Types Extension

You installed a theme (or a specific plugin), and you would like to link your folders and collections from Lightroom to your WordPress. Every theme works differently, but 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.

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.

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” section on the WP/LR Sync Buy page.

  • 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

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