Search Problem

Home Forums Calendar Products Events Calendar PRO Search Problem

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1022471
    Michael
    Participant

    When you search for the name of a city in the normal WordPress-Search you also find the events in the Calendar . But the date below the event title is not the date of the event – it is the date this event was written to the database.

    You see it here http://www.chanson.de/?s=Berlin

    How can we change that so that the date of the event is shown?

    #1022739
    Brook
    Participant

    Howdy Michael,

    Good question. I would love to help you with this.

    I wish there was an easy solution to this, but there is not. The date you are seeing is the one your theme is showing. In order to change this date you typically have to a somewhat indepth modification to your theme. But if you are a person who knows how to do such things, then find your themes search template and modify it. Then check each post to see if it is an event. If it is show the meta data for ‘_EventStartDate’ instead of ‘post_date’. I am sorry if this whole paragraph sounds like greek, if it does then this is likely not something you have the capability to do for your theme.

    Does that all make sense? Will that work for you? Please let me know.

    Cheers!

    – Brook

    #1023192
    Michael
    Participant

    That does not sound too complicated. I have some knowledge from phpnuke and modifying it.
    But not with wordpress.
    Where exactly do i Find the search.php or similar ?
    And what will be the code to put in?
    Something like: if code is an event than print _EventStartDate else print post-date?
    Can you post a snipplet that i Can use?
    Thanx a lot!

    #1023542
    Brook
    Participant

    Howdy Michael,

    Unfortunately I can not be more specific on any of those questions than I already was – that’s why I was saying it might be a bit complicated. The exact code, location of the search file, etc. will all vary depending on your theme. It might require a decent knowledge of your theme’s structure to find and modify these, as well as a good understanding of WP Custom Post Types.

    If you wish to simply exclude the Events from your theme’s search results, you might contact the theme author and ask them how to exclude the post type “tribe_events”. For that they could probably provide a snippet and a location you could copy/paste into.

    I hope that helps clarify things. Cheers!

    – Brook

    #1075506
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Search Problem’ is closed to new replies.