David

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Testing for single event listing #15912
    David
    Member

    Hey Rob, any joy with an answer to this? All I need to do is to test in the header.php file to see if the post showing is a single event listing eg

    http://www.rubycoastmouterehills.co.nz/event/a-touch-of-class/

    Is is something like

    http://wordpress.org/support/topic/how-to-check-for-custom-post-type-and-if-its-hierarchical

    or

    http://wordpress.stackexchange.com/questions/6731/if-is-custom-post-type

    Is is just testing for a custom post type in wordpress?

    Thanks, David

    in reply to: Testing for single event listing #15805
    David
    Member

    Hi Rob,

    The website I am working with (rubycoastmouterehills.co.nz) has 3 sections visit, business and community. Each section has its own 2nd level menu and colour scheme.

    I have listed events from the TEC on 2 wordpress pages by filtering by event category (visit or community). All well so far.

    I need to maintain the 2nd level menu and colour scheme when drilling down to the event detail in the event single.php template. I run a number of tests in header.php to work out which section I am in based on custom post types, categories etc.

    So I am looking to test to see if the user is going to see a single event listing. If they are I will look to see which page referred them to work out if I should show the visit or community submenus. Some events (prob. most) are actually members of both event categories.

    Complicated – yep, sure is …

    Cheers, David

    PS I did try and test on custom post type being tribe_events but I do not think this worked for me. There must be something I can test for early on that will tell me that this is a single event listing.

    in reply to: Some tips on integration with categories #14496
    David
    Member

    OK I have just looked at the customisation info for TEC for the install. It appears that only 1 url is permitted. Could this be set as

    /events/visit/
    /events/community/

    based on the category shown?

    Thanks.

    or something similar

Viewing 3 posts - 1 through 3 (of 3 total)