put events in a table

This topic contains 8 replies, has 2 voices, and was last updated by  defaliz 11 years, 9 months ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #5095

    hello,
    thanks a lot for your plugin…
    i need to put events (title, date, venue…) in a php table of my own
    is it possible ?
    i think i need to do a loop (for or while ? ) in eo_events and place attributs %start% %venue%… in the table
    is there another trick ?

    thanks for your help

    alain

    defaliz
    #5096

    Hi Alain,

    You can do one of three things:

    • Create your own shortcode, and use eo_get_events() to retreve events and display them in a title.
    • Create your own page template and use eo_get_events() as above
    • Use the [eo_events] shortcode with a custom template for shortcode-event-list.php.

    The first one is probably the best option.

    Stephen Harris
    #5121

    thanks a lot Stephen
    i’ll try your solutions
    reagrds

    defaliz
    #5124

    i’ve done like on this page
    http://departement-biologie.univ-evry.fr/even-test

    but as you can see in row L1 there is all the list (events are in category L1, M1…)
    i need first event of category L1 in the first row, second in the second and so on…
    here is a piece of my table code :
    maybe something that i don’t understand….

    L1
    [eo_events event_category=”L1″ ] %event_title%
    %start{jS M Y}%
     %start{g:i:a}%
    %event_venue% [/eo_events]

    defaliz
    #5195

    ok, works by modifying shortcode-event-list.php
    but i don’t know how having the venue with the function :

    return nothing… even if i use $id….

    how can i do ?
    thanks for your help
    regards

    defaliz
    #5196

    ok, works by modifying shortcode-event-list.php
    but i don’t know how having the venue with the function :

    return nothing… even if i use $id….

    how can i do ?
    thanks for your help
    regards

    defaliz
    #5197

    Looks like something got swallowed in the forum. If you’re trying to get the venue ID from the event:

     $venue_id = eo_get_venue( $event_id );
    

    where $event_id is the (post) ID of the event. Although, in that template file, eo_get_venue() should work too.

    Stephen Harris
    #5198

    yes Stephen
    i can read the id like in this page http://departement-biologie.univ-evry.fr/even-test

    but i need the name of the venue
    when i try in the loop i have 196 and 197
    when i try
    i have always 11, but not the name or description of the venue

    regards

    defaliz
    #5199

    ok i found the solution
    i was using numeric ID but i have to use the name of the id (string character)
    so to have the venue un my table :

    that’s all !
    thank a lot
    Alain

    defaliz
Viewing 9 posts - 1 through 9 (of 9 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.