- AuthorPosts
- April 25, 2017 at 08:25 #9369
AnonymousInactiveHi All
I have a nav bar with options ” search bar, newest and popular”, now i was wondering if Gmedia Album Stripes allows you to link the newest images to the newest button and display just those images, and the same with the popular and search buttons.
April 26, 2017 at 16:45 #9380
RattusKeymasterIt’s depends on the WP Theme you use. But in most cases require code modifications.
You could create few galleries with different queries. One gallery could show last 30 uploaded images and second gallery will show most viewed or liked images.
In the Query Args. field you should write:
Newest:
order=DESC&orderby=ID&limit=30Popular by views:
order=DESC&orderby=views&limit=30
OR by likes
order=DESC&orderby=likes&limit=30
OR by comments
order=DESC&orderby=comment_count&limit=30April 27, 2017 at 18:50 #9389
AnonymousInactiveThanks very much for your help. It is working great.
One other question i have is the arg querey for the search button, must be able to search a Tag.
Is there a full tutotial on these arg queries for gmedia on all the diffrent argument querie.thanks again for you help
April 30, 2017 at 15:26 #9396
RattusKeymasterThat’s require to build custom template for your theme with code like:
<?php /* ... */ $search = !empty($_GET['s'])? esc_attr($_GET['s']) : ''; $shortcode = "[gmedia query='order=DESC&orderby=ID&limit=30&tag_name__in={$search}']"; echo do_shortcode($shortcode); /* ... */ ?>But this require modification for individual theme.
- AuthorPosts
- The forum ‘Gmedia Gallery WordPress Plugin’ is closed to new topics and replies.
