- AuthorPosts
- March 30, 2018 at 19:52 #10784
tguldenerParticipantIs there a way to create a shortcode with filter for a taken date?
Like this one:
[gm album=1 query=year=2017&monthnum=06&day=05]
Only for the taken date and not the upload date?
g
ThomasMarch 30, 2018 at 23:16 #10785
RattusKeymasterIt will be too complicated to create such query, because you need to transform date to timestamp and find images created between these timestamps.
For example, here is the shortcode for for the date between 2017-06-05 00:00:00 and 2017-06-06 00:00:00:[gm album=1 query="meta_key=_created_timestamp&meta_value%5B%5D=1496620800&meta_value%5B%5D=1496707200&meta_compare=BETWEEN"]March 31, 2018 at 18:17 #10788
tguldenerParticipantthank – I can calculate the timestamp value?
g
ThomasApril 2, 2018 at 19:44 #10795
RattusKeymasterApril 3, 2018 at 00:50 #10798
tguldenerParticipantthx – it defiantly not so comfortable. But my 2nd option will also not work. I tried to add a tag like “20180402” to add the crate date as tag to the picture. But it’s not possible to add a numeric only tag.
April 3, 2018 at 11:27 #10800
RattusKeymasteryou can make tag like “2018.04.02”
April 16, 2018 at 00:11 #10863
tguldenerParticipantHi Rattus
Thank for all the help. The Shortcode with the timestamp is not working on my installation. The 2nd idea with the tag is not a bad idea. but also there is the problem, that I can’t use it directly in my blogs. It’s needed to use the index of the TAG in the query and not the TAG self.
I think there will be at the moment no other solution to create a new gallery for each blog entry manual.
I have a site with blogs (day review of a travel). So my hope was, that have now a solution with gmedia to generate a dynamic Gallery over the Shortcode to present the Pictures taken on that day.g.
Thomas - AuthorPosts
- The forum ‘Requests and Feedback’ is closed to new topics and replies.
