Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi ! I think this might do what you are trying to do…
    http://pastebin.com/mcaE69Ja
    It is a custom shortcode that you would put in your theme’s function.php file.
    The shortcode will be [custom_events_list] .

    In the pastebin change this line to the number of columns you would like…
    $limit = 3 ie: that is three columns.

    You can edit the pastebin file to show your event image etc etc.

    As always backup your files (function.php)… the pastebin doesn’t make any changes to your database… but if you get an error you will FTP your “clean” funtions.php file to correct.

    Hi,

    Because there’s way to count the number of events in the list, you’d need to create a PHP template to do this.

    Hi Caimin.. I am a little confused by your comment.

    I am using that pastebin without a custom template.

    I also modified the same pastebin for a locations list..
    So that I don’t have one long list, but a nice four column table that the user doesn’t have to scroll down a lot…

    Maybe I am confused by the original poster’s request and what you said..
    “Because there’s way to count the number of events…”

    also.. if the user wanted to pull from different categories (use the category ID).
    $events = EM_Events::get(array('scope'=>'future','limit'=>10,'category'=>343));

    and thusly from two different categories..
    $events = EM_Events::get(array('scope'=>'future','limit'=>10,'category'=>array(343,36)));

    Sorry, I missed out a key word. Meant to say:

    “Because there’s no way to count the number of events…”

    Thread Starter araytha

    (@araytha)

    @robswaimea
    That has worked perfectly and was exactly the format I was looking for, thank you so much. I’ve run into one issue, its displaying the set amount of events three times. I’ll include a link to a screen shot to show what I mean.

    https://i.imgsafe.org/fb534efdba.png

    Thank you again for the help

    Thread Starter araytha

    (@araytha)

    Found my issue! Forgot to close the new short code. Problem solved thank you for all of your help.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Styling Events Manager List’ is closed to new replies.