Tips and Tricks HQ Support Portal › Forums › WP Photo Seller › How can I change the Gallery ID?
- This topic has 10 replies, 4 voices, and was last updated 5 years, 4 months ago by Peter.
-
AuthorPosts
-
September 2, 2016 at 8:52 am #13693Jarkko58Member
Gallery ID is assigned automatically. How can I change it?
September 2, 2016 at 12:03 pm #74062wzpModeratorSeptember 5, 2016 at 2:40 pm #74063Jarkko58MemberThank you for your message.
I want to change the ID of the gallery (Not the url). If I change the url, the ID remains the same. ??
September 5, 2016 at 2:47 pm #74064Jarkko58MemberI need to change the order of the galleries.
But I can not use ‘Names’ to sort, because I dont want them in alphabetic order. I can not use ‘Date’ to sort, because I want to add the newest photos now and later the oldest ones.
I need to order them with custom ID.
September 6, 2016 at 12:03 am #74065PeterMemberYou can’t change the ID number of a gallery because it is a “primary” database key.
Why don’t you use the ID sort option? You can sort by ID ascending or descending.
September 6, 2016 at 11:33 am #74066Jarkko58MemberHi Peter,
If I use ID sort option it will show the galleries in the same order I have created them.
I will have about 200 galleries. I want to add first the newest ones. Then later on I will be adding the oldest galleries. But in the future I will add also new galleries.
If I use ID descending sort option, and add the oldest galleries later, they will be shown first in the frontpage.
If I use ID ascending sort option, new galleries in the future will not be first in the list.
September 7, 2016 at 12:14 am #74067PeterMemberI am little confused by your explanation but I think you may be asking for either:
1) sorting by the date a gallery has been updated,
OR,
2) displaying the latest added photos across all galleries.
Number 1 is currently not possible but we can probably add it in a future release.
Number 2 is currently available as a shortcode.
Example:
To display the latest 100 photos added put the following code on a page:
[WPS_latest_photos number_photos=”100″]
The above will display the latest 100 added photos across all of your galleries.
Please confirm which of the above best matches what you are after.
September 7, 2016 at 11:01 am #74068PeterMemberUpdate:
I have added the ability to sort by date “updated” for a gallery. I think this will achieve what you are looking for.
September 7, 2016 at 3:36 pm #74069Jarkko58MemberHi Peter,
Thank you for your help. It is not quite what I was looking for but it could work (I will check it later).
I am planning to use albums. I would make one album for every year. And I want to show in the homepage the galleries of the present and the past year.
For example this year I want to show in the homepage the galleries from the albums 2016 and 2015. Next year I will make a new album called 2017 and want to show the galleries of the albums 2016 and 2017.
Is there a shortcode to show gallerien of the 2 latest albums?
(I would like to use shortcode that my client can add his photos without my help..)
July 13, 2019 at 8:11 pm #74070ianccMemberthe Latest Photos are displayed with Template 1 is there a way to change that?
July 22, 2019 at 1:35 am #74071PeterMemberHi iancc,
Currently the latest photos shortcode feature is only available in the template 1 option.
I will see what can be done about extending this feature with other templates.
-
AuthorPosts
- You must be logged in to reply to this topic.