if is_singular( 'tribe_events' ) not working

Home Forums Calendar Products Events Calendar PRO if is_singular( 'tribe_events' ) not working

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1162877
    Edith
    Participant

    Hi,

    I need to show special header images for my tribe events pages – archive and single pages.

    Whilst this code is working for the archive pages
    http://dev.felicitassaurenbach.de/termine/kategorie/fw-werkstatt-selbstfuhrung/
    it doesn´t work for the single pages like
    http://dev.felicitassaurenbach.de/termin/modul-1-mensch-einheit-aus-korper-seele-und-geist/.

    Originally I wanted a different header image for each category – but I cannot even make it work with the same image for all categories. This is the part of my code.

    elseif (tribe_is_event() || tribe_is_event_category() || tribe_is_in_main_loop() || tribe_is_view() || 'tribe_events' == get_post_type() || is_singular( 'tribe_events' )) {
    echo 'Termine Felicitas Saurenbach';
    }

    Can you tell me where I am wrong?
    Thanks!

    #1163194
    Cliff
    Member

    Hi Edith.

    Please explain where you’re putting that code.

    Please also try changing the Events template option at wp-admin > Events > Settings > Display tab and see if your changes then do take effect.

    Thanks.

    #1167805
    Edith
    Participant

    Hi Cliff,

    oh yeah… that did they trick. I switched to Standard-Template and it works.
    Don´t really understand it but ok 🙂
    Thanks.

    #1167849
    Cliff
    Member

    I’m glad that worked for you.

    For future reference, you can read more about that setting at https://theeventscalendar.com/knowledgebase/wp-admin-settings-overview/#display

    Have a good day.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘if is_singular( 'tribe_events' ) not working’ is closed to new replies.