Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @srdriggers,

    This is unfortunately a customization outside the scope of the support we can provide here, but to at least offer some advice, you should be able to run different code for different event types if the types are actually different post types on your site.

    For a quick example, let’s say your Promos events are of a post type called “sdriggers_promos”. Then you might have some luck using code like this:

    if ( 'tribe_events' == get_post_type() ) {
        // ... code here for when viewing a Tribe events type
    }
    
    if ( 'sdriggers_promos' == get_post_type() ) {
        // ... code here for when viewing your Promos events type
    }

    If you don’t have these things as separate post types, and they’re instead just separate categories or something, then you could use functions like has_term() in a similar way as I demonstrated above.

    If you’re not familiar with these functions, check them out on codex.www.ads-software.com (often the first Google result if you just search the function name), and you’ll find examples and lots of helpful information.

    I hope the information here helps!

    Cheers,
    George

    Thread Starter srdriggers

    (@srdriggers)

    Thank you I appreciate the help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘List view display depending on category’ is closed to new replies.