Getting an accurate list of approved images

picu has a convenient method of providing you with a list of filenames of all of the approved images.

Copy filenames by the click of a button
Copy filenames by the click of a button

By copying and pasting this string of filenames into Lightroom’s library filter search field you should get exactly those images. (Make sure to select „Filename“ and „Contains“.)

Lightroom’s library filter
Lightroom’s library filter

By default picu gives you the filenames separated by a space.

This however doesn’t work for some photographers, who name their files ending in sequence numbers, eg. flower–1.jpg, flower–2.jpg, …, flower–10.jpg.

Entering flower–1 in Lightroom’s search field it will show them flower–1.jpg as well as flower–10.jpg (and 11, 12, …).

(Aside: This problem won’t occur if you use leading zeros in your filenames, like flower-0001.jpg and flower-0010.jpg.)

To accommodate photographers that use this kind of file naming we introduced a way of customizing the separator in version 0.9.2:

Define a constant

Just add the following line to your wp-config.php file:

define( ‘PICU_FILENAME_SEPARATOR’, ‘. ’ );

Add your custom separator between the last two quotes.

In the code example above the separator consists of a point and a space, which would result in „flower–1. flower–2. flower–3. …“.

Instead of a point you could also write .jpg. But as many photographers only keep raw files in their library (with different file extensions) a point is actually all that’s needed for Lightroom to determine the end of a filename.


There is actually a second way to do the same thing. It is targeted more towards developers:

Use our picu_filename_separator filter, eg. by adding the following code snippet to your theme’s functions.php.

add_filter( ‘picu_filename_separator’, ‘my_custom_filename_separator’, 10, 2 );

function my_custom_filename_separator( $divider ) {
    return ‘. ’;
}

Either way, we hope this improvement is useful in your personal workflow and allows you to stick to your specific convention of naming image files.

If you have any questions, we’re here to help.


Subscribe to our mailing list and/or follow us on Twitter to receive the latest in the on-going development of picu.

Posted in:

Related Posts

These posts could interest you as well, read on to get the full picture.

  • Local SEO for Photographers

    If you’re a photographer, there’s a pretty good chance that most of your clients are local. You might specialize in weddings, portraits, or commercial shoots. No matter your niche, people searching for your services are often looking for someone nearby. And where do they look? Google Search and Google Maps. So, if your business isn’t…

    Read more

  • Update – March 2025

    Here’s another quick update on what we’ve been up to in March. There were a few unforeseen challenges we experienced this month, which is why we had to delay some things into April. Namely, our custom block to list collections and the next Alpha version of picu Pro – including Taxes for E-commerce. Read on…

    Read more