Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter nowton

    (@nowton)

    Furthermore on this view http://www.stadspodium-rotterdam.nl/evenementen/list/?tribe_event_display=past we set a widget to not display using Widget Logic and this conditional !tribe_is_past() with no effect whatsoever. Please advise, thanks.

    Brook

    (@brook-tribe)

    Howdy nowton,

    It looks like something is overriding the query. It might be your theme, a plugin, or one of your customizations. If you don’t know what it is you should test for a conflict. Cheers!

    – Brook

    Thread Starter nowton

    (@nowton)

    How can I test which TEC-conditional is in effect for a specific view? Our standard debugging tools do not show.

    Brook

    (@brook-tribe)

    I am not sure i understand your question. If you are asking if we log each usage of a conditional for a given page load, we do not. You would have to use Xdebug or something to do a step by step if you needed that much information. Obviously that would be painful though. You could probably use the same tool to narrow it down much quicker, then throw in a stop on which ever lines of code you suspect.

    Cheers!

    – Brook

    Thread Starter nowton

    (@nowton)

    Let me refrase that: How can I test which condition is in effect on each view? (That way I can decide which conditional to use). So far I have tried tribe_is_upcoming and the like, but it’s not really clear from the documentation when each condition is in effect. Hence i’d like to test and/or output the conditionals in the templates we build, so we can start from there. Thanks.

    Brook

    (@brook-tribe)

    Howdy Nowton,

    Thanks for waiting for an answer. We were out for the holidays and doing a bit of catch up.

    You’d need to include the condition somewhere on the page and then log the output. To test what tribe_is_upcoming() will state for a given page, add it to in somewhere on that page.

    That’s probably not the answer you were looking for. But, we don’t call every conditional on every page, and we especially do not log them. We do add some of them to the main WP_Query object, but certainly not all. That would add a lot of slowness and bloat.

    You might also find this snippet useful. It has a lot of conditionals inside of it and comments indicating which pages it applies to. Although it is an older snippet and one or two of them might need updating, by and large the should all work if not all of them. http://pastebin.com/QU2aMwBJ

    Cheers!

    – Brook

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘incorrectly shows post as event in sidebar’ is closed to new replies.