Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #9369
    shanepaulsen
    Participant

    Hi 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.

    Attachments:
    You must be logged in to view attached files.
    #9380
    Rattus
    Keymaster

    It’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=30

    Popular 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=30

    #9389
    shanepaulsen
    Participant

    Thanks 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

    #9396
    Rattus
    Keymaster

    That’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.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Gmedia Gallery WordPress Plugin’ is closed to new topics and replies.
Forum closed. Use forum at Wordpress.org: Gmedia Support Forum