tribe_is_event() not working properly after upgrading to 3.0.

Home Forums Calendar Products Events Calendar PRO tribe_is_event() not working properly after upgrading to 3.0.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #53412
    humberlife
    Participant

    I upgraded my plugins (both The Events Calendar and PRO) and the function tribe_is_event() stopped working.

    I have a set a conditional that looks like this:

    Before the upgrade it worked perfectly but now, after running a couple of tests on the conditional I found out that apparently tribe_is_event() does not recognize the events pages (single or list) as events. I figured this out by running the conditional:

    which ironically was printed in all the single and list pages.

    am I doing something wrong or is there a way to fix this?

    Thanks in advance!

    #53413
    humberlife
    Participant

    damn it this forum sucks at displaying code!

    #53414
    humberlife
    Participant
    #53803
    humberlife
    Participant

    OK, I solved it.

    The problem was that my events page template was calling a loop so the it was creating a sort of loop within a loop problem. This was messing up all the logic of the conditionals.

    I recommend to use the basic structure that the default template comes with… I still havent been able to create my own file. As for now I’m only editing the default template file.

    #54088
    Barry
    Member

    Hi!

    The forum does indeed have some issues when it comes to sharing code, the best advice I can offer on that front is to use a service such as Pastebin or Gist and paste the link in here.

    It sounds though like you are pretty much sorted with regards to the main problem?

    #54112
    humberlife
    Participant

    No worries! cheers and thanks! I’m closing the topic!

    #54116
    Barry
    Member

    Cool beans, if there is anything else just create new threads as needed.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘tribe_is_event() not working properly after upgrading to 3.0.’ is closed to new replies.