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
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
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?
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