• Resolved girdy74

    (@girdy74)


    I’ve read through all the conditional statements but I haven’t found a match for what I’m looking for. I want to program into the footer a conditional statement that says, “If on this specific event calendar page display this”. I found

    if( tribe_is_event() || is_single(2338) ) { } but it doesn’t seem to look at the ID so, I wasn’t sure if this was even possible?

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support tristan083

    (@tristan083)

    Hi @girdy74 ,

    Thank you for reaching out.

    Could you please provide more context of your use case here? Specifically, what page (or view) are you trying to apply the conditional to.

    Are you able to provide the direct URL to the page?

    Thread Starter girdy74

    (@girdy74)

    You bet: https://selfistry.com/program/know-your-self-online/

    I’m trying to add something to the footer only on this event page.

    Thank you!

    Plugin Support tristan083

    (@tristan083)

    Hi @girdy74 ,

    Thank you for your message and the information.

    Since you are in the single event view, there should be able to access the post ID (or event ID) like so:

    if ( is_single_event() && get_the_ID() == 2338 ) {}
    Plugin Support Darian

    (@d0153)

    Hi there,

    It appears that we haven’t heard back from you in a while, so I’ll assume that the matter has been resolved. If you need any more help, feel free to start a new thread and we’ll be happy to assist you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.