[events] Related events

This topic contains 4 replies, has 3 voices, and was last updated by  Mario P. 8 years, 5 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #7811

    Hi Stephen.

    Do you have any ideas how to display related events on single-event page? As for me, i need only few (random or latest, doesnt matter) events in same category. But as an idea you can make some options avaiable from admin panel. 🙂

    Iurii Smuglov
    #7821

    I’ll write up a tutorial on this next week, but you can use eo_get_events() (see codex) (along with the argument tax_query to get events in given categories and/or venues).

    Remember that eo_get_events() is just a wrapper for get_posts() which itself uses WP_Query. So you can use everything detailed on this page: http://codex.wordpress.org/Class_Reference/WP_Query too.

    Stephen Harris
    #24608

    Hi Stephen,

    I tried to create a list of “related events” under the single-event.php but I did not succeed …
    Related event also good for SEO…

    Can you write up a simple tutorial ?
    😉

    Mario P.
    #24620

    Hi Mario,

    How are you determine what events are related to the current one?

    Stephen Harris
    #24635

    Hi Stephen,

    I think it is a good:
    – events w/ same category and same state,
    – if no events in same state show events in country

    Mario P.
Viewing 5 posts - 1 through 5 (of 5 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.