• Resolved photosynthesist

    (@cjhenrichs)


    I want to display the last 15 images added to nextgen. Using RECENT seems to be based on the original image date in the image metadata rather than on the image ID created when uploaded to my website. I want the last images added to the nextgen database, regardless of the metadata date.

    Is this possible? I think I had it working with legacy shortcodes at one point but cannot find those now.

    Thanks!

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello @cjhenrichs,

    You can use this filter in your functions.php file (inside your theme).
    Note: please be careful. If you don’t know how to edit that file, you should ask for help.

    add_filter('ngg_recent_images_sort_by_column', function() { return 'pid'; });

    That should arrange your recent photos using the Photo id instead of the metadata date.
    Please, let us know how it goes, we are happy to help!

    Because it has been a month or more since your last reply, I am going to mark this as resolved as I assume you have found a solution. Please feel free to reply again if you still have questions.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Display Last 15 Images Added’ is closed to new replies.