Get event by ID

This topic contains 2 replies, has 2 voices, and was last updated by  Stephen Harris 6 years, 11 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #27376

    Hi,

    I was trying to do that, but the following does not give the expected result:

    $events = eo_get_events( $args = array('p' => $event_id) );

    I get the last event on Events list in the Admin panel instead of the required one. What am I doing wrong?

    Thanks! — Jarek

    Jaroslaw
    #27380

    Okay, problem (partially) solved: the post was private. However, it is still funny that the search function does not return this post even to an Administrator, who can read all the private posts by default.

    Jaroslaw
    #27381

    Hi Jarek,

    Maybe check the value of $event_id – that line of code works for me.

    Stephen Harris
Viewing 3 posts - 1 through 3 (of 3 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.