Need Help Spliting Custom Venue List into 2 – 4 columns

Home Forums Calendar Products Events Calendar PRO Need Help Spliting Custom Venue List into 2 – 4 columns

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #43205
    Robert
    Participant

    Im using the following code to generate a list of venues on a page…. I’d like to be able to split this list into 2 -4 columns so it looks better on the page. Or possible even split the list into multiple pages…. any suggestions?
    Here is what I am using now ( it is at this time only one column)

    $args = array(
    ‘posts_per_page’=>-1,
    ‘orderby’=> ‘title’,
    ‘order’ => ‘ASC’,
    ‘post_status’=>’publish’,
    ‘post_type’=>’tribe_venue’
    );
    $get_posts = null;
    $get_posts = new WP_Query();

    $get_posts->query($args);
    if($get_posts->have_posts()) : while($get_posts->have_posts()) : $get_posts->the_post(); ?>

    <a href="”>


    Can’t get it to post the exact code i’m using on the forum but it’s basically this code: https://gist.github.com/jo-snips/4978177 with a ul & li tag before the link

    #43293
    Jonah
    Participant

    Hi Robert,

    It seems to me you would want to add some sort of wrapper like a ul or li for each venue and then float them and style them otherwise into the column layout you want. You might also try a plugin like this (http://www.madeincima.it/en/articles/resources-and-tools/easy-list-splitter-plugin/) to help you split the list up into chunks that you can then style.

    Does that help?

    – Jonah

    #44790
    Robert
    Participant

    Yeah Kind of. I’ve got the UL Tag thing figured out, I used this code https://gist.github.com/jo-snips/4978177 and added ul & li tags before the link

    I’m not really sure how to split it beyond that. If possible I would like to do it by letter so I could split them into either rows based on alphabetical display or even better would be for each letter to have it’s own page ie. venues that start with a would be listed on venues-a venues that start with b would be listed on venues-b, etc…

    #44811
    Jonah
    Participant

    Hi Robert,

    What about using something like this to split the list into pages: http://luis-almeida.github.com/jPages/

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Need Help Spliting Custom Venue List into 2 – 4 columns’ is closed to new replies.