Home › Forums › Calendar Products › Events Calendar PRO › Search Problem
- This topic has 4 replies, 3 voices, and was last updated 10 years, 2 months ago by
Support Droid.
-
AuthorPosts
-
November 6, 2015 at 2:30 am #1022471
Michael
ParticipantWhen 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?
November 6, 2015 at 4:14 pm #1022739Brook
ParticipantHowdy 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
November 9, 2015 at 6:26 am #1023192Michael
ParticipantThat 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!November 9, 2015 at 5:36 pm #1023542Brook
ParticipantHowdy 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
February 18, 2016 at 8:30 am #1075506Support Droid
KeymasterThis 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. -
AuthorPosts
- The topic ‘Search Problem’ is closed to new replies.
