• Resolved thegreyspot

    (@thegreyspot)


    Hi,

    I am listing events with my own custom php code. Im also on a multisite installation. So an event object looks like:

    Array
    (
        [event_id] => 12
        [post_id] => 113
        [event_slug] => event-test-should-show-up-in-events-column
        [event_owner] => 1
        [event_name] => Event Test, Should show up in events column e:1 f:0
        [event_start_time] => 13:15:00
        [event_end_time] => 13:15:00
        [event_all_day] => 0
        [event_start_date] => 2014-01-31
        [event_end_date] => 2014-01-31
        [post_content] =>
        [event_rsvp] => 0
        [event_rsvp_date] =>
        [event_rsvp_time] => 00:00:00
        [event_rsvp_spaces] =>
        [event_spaces] => 0
        [location_id] => 0
        [recurrence_id] =>
        [event_status] => 1
        [event_private] => 0
        [event_date_created] => 2014-01-16 16:29:26
        [event_date_modified] => 2014-01-16 17:00:01
        [event_attributes] => a:2:{s:30:"publish_to_university_homepage";s:1:"1";s:34:"university_homepage_featured_event";s:1:"0";}
        [blog_id] => 2
        [group_id] => 0
        [recurrence] => 0
        [recurrence_interval] =>
        [recurrence_freq] =>
        [recurrence_days] => 0
        [recurrence_byday] =>
        [recurrence_byweekno] =>
    )

    As you can see the only thing that helps me is “event_slug”. However, since i have subdomains, I don’t know which subdomain this event is on. Say “test.test.com/events/event-test-should-show-up-in-events-column”.

    How can ask for the full URL of an event?

    http://wordpress.org/plugins/events-manager/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Get url not just slug’ is closed to new replies.