Hello, I have a foreach loop that creates a list of all the venues, with a linked name, description and thumbnail, if these exist. Like so:
$venues = eo_get_venues();
if( $venues ){
foreach($venues as $venue){
$venue_id = (int) $venue->term_id;
printf('some html here', eo_get_venue_link($venue_id), esc_html($venue->name));
echo 'html' . eo_get_venue_thumbnail( $venue_id ) . 'html';
echo 'html' . eo_get_venue_description( $venue_id ) . 'html';
}
}
Is it possible to add pagination to this? If so, how? If not, how can I have a paginated list of venues with titles, links, thumbnails and descriptions? I can’t figure this out… So thank you very much for any help

Duarte Lourenco
Still trying to solve this 🙂
I’m looking for something like the events listing, but for venues (and tags, etc)

Duarte Lourenco
Loading, for example, 10 at a time should work as well.
Or the hability to create an equivalent loop but with “query” or “wp_query”… I could work with that!
I’m just trying to think of alternatives!…

Duarte Lourenco
Hi Duarte,
I had a snippet for creating a page template which lists venues. I’ve just updated it to support pagination: https://gist.github.com/stephenharris/4988324
It’s perhaps not the neatest of solutions, but it is the easiest….

Stephen Harris
Thank you, I really appreciate it.
Ended up using it on a couple of pages 🙂

Duarte Lourenco