A simple wp_query on event doesn't work anymore.

Home Forums Calendar Products Events Calendar PRO A simple wp_query on event doesn't work anymore.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1189063
    quesada
    Participant

    Hello,
    I have two development environments for the same site and I am working on one for a while. I have not touched these sites for 2 to 3 weeks.
    Everything worked fine but I got a surprise when I took over development.
    My request Wp_query was not working, I then conducted tests using a simple request, nothing works.

    And to my surprise, I have exactly the same problems on my old development environment that I have not touched since and that worked.

    I bought the licenses event calendar pro and filter bar and I do not know what to do …

    Do you have any solutions? or means test the data recovery?

    Sorry for my bad English,

    #1189253
    quesada
    Participant

    Hello,
    After many tests, I found that events with a date less than the current date are not displayed.

    • This reply was modified 9 years, 6 months ago by quesada.
    #1189451
    Nico
    Member

    Hi there @quesada,

    Thanks for getting in touch with us! I can help you here ๐Ÿ™‚

    By default when you query events the scope is indeed set to get just upcoming events. Can you please elaborate a bit more on what you are trying to do with the query? It might also help if you share the actual coded you are using.

    Thanks,
    Nico

    #1189508
    quesada
    Participant

    Hello, finally I solved my problem which was simple in fact. I needed to retrieve the events passed by wp_query, so I added the parameter ‘eventDisplay’ => ‘custom’ to my query.

    Thank you

    #1189572
    Nico
    Member

    That’s great @quesada! Thanks for the heads-up and glad to hear you could sort this out ๐Ÿ™‚

    Iโ€™ll go ahead and close out this thread, but if you need help with anything else please donโ€™t hesitate to create a new one and we will be happy to assist you.

    Best,
    Nico

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘A simple wp_query on event doesn't work anymore.’ is closed to new replies.