Tribe event page name/id to use to call ad server zone

Home Forums Calendar Products Events Calendar PRO Tribe event page name/id to use to call ad server zone

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #953215
    clintaugust
    Participant

    Hi,

    We want to use an as server to target specific pages. I have identified the homepage like this (snippet is minus tags on purpose here)):

    if(is_page(home)) {

    echo ‘home!’;

    However, it doesn’t work when I substitue ‘events’ for ‘home’ – I usually find the page-id in the source code, but I can’t find any other ids for Tribe events.

    Can someone help me get the event page identifier? Does this even make sense?

    Thanks!

    #953354
    Brian
    Member

    Hi,

    Thanks for using our plugin.

    The is_page() conditional does not work for events as WordPress considers the event views to be an archive page.

    I have this list of conditionals you can use to target specific pages:

    https://gist.github.com/jo-snips/2415009

    Does that help?

    #953368
    clintaugust
    Participant

    Yes! Thank you very much!

    #953369
    clintaugust
    Participant

    This reply is private.

    #953440
    Brian
    Member

    tribe_is_week() is the correct function. I verified it is in the plugin and what we use to check. It could be you are calling it before the plugin loads or some other coding is causing a conflict. I am not able to troubleshoot customizations unfortunately.

    #953474
    clintaugust
    Participant

    No Problem – that info saves me some time.

    Thanks!

    #953518
    Brian
    Member

    Ok sounds good.

    I am going to close this ticket, but if you need anything else related to this topic or another please post a new topic on the forum and we can help you out.

    Thanks

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Tribe event page name/id to use to call ad server zone’ is closed to new replies.