Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1126321

    I’d like to show the Partner Elements in random order.

    This code below works perfect for Masonry Galeries
    …………………..
    add_filter(‘avia_masonry_entries_query’, ‘avia_random_image_query’, 10, 2);
    function avia_random_image_query($query, $params)
    {
    if(!empty($query[‘post_mime_type’]) && $query[‘post_mime_type’] == ‘image’)
    {
    $query[‘orderby’] = “rand”;
    }

    return $query;
    }

    …………………….

    How could it be adapted for Partner Elements (to show them in random order)

    Thank you for your help
    Sabine

    • This topic was modified 5 years, 3 months ago by sabine.
    #1126945

    Hey ingridbrauner,

    You need to change the filter here:
    avia_masonry_entries_query
    with the following one, to work for the partners element ( not tested ).

    Best regards,
    Basilis

    #1127210

    sorry, I don’t understand … with the following one … What does that mean?
    Or do you mean I have to find the right expresion for “partner element querys”. Is there a dokumentation?

    #1127341

    Hi ingridbrauner,

    Unfortunately, it would require quite some time and customization of the theme to achieve this, so I am sorry to tell you that this is not covered by our support. However, if it’s really important for you to get this done, you can always hire a freelancer to do the job for you :)

    Best regards,
    Victoria

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.