Home › Forums › Calendar Products › Events Calendar PRO › Search Page – Custom Post Name / post_type rename
- This topic has 3 replies, 2 voices, and was last updated 6 years, 2 months ago by Saif.
-
AuthorPosts
-
February 13, 2018 at 9:35 pm #1452473SaifParticipant
Hey! So I’ve been getting slaughtered on my site as “nothing is there” because when people search, the custom post types don’t come up first.
I’ve found the solution to that:
Custom Search Template in Genesis showing Results grouped by Post Types
Which would be great, but it’s not displaying what my post_type is – “Events” or “Upcoming Events” – it’s displaying “tribe_events”.
While I reviewed this solution:
https://theeventscalendar.com/knowledgebase/renaming-views/I don’t want to rename my slugs, etc; I just want the first results pulling from tribe_events to be called “Events” or “Upcoming Events” instead of my current solution of // RESULTS:
http://okgamers.com/?s=injusticeIs there a bit of code you can point me at to slip into the search page loop there or entirely new page code; whatever it takes, to get that “Events post first in search, and labeled clearly” like the “Recipes” example?
February 14, 2018 at 7:09 am #1452820VictorKeymasterHi Saif!
Thanks for reaching out to us. Let me help you with this topic.
I think you will find what you are looking for in the following link > https://wordpress.stackexchange.com/questions/270999/how-to-get-custom-post-type-label-and-singular-label-from-its-slug/271030
I hope that helps. Let me know if any follow up questions.
Best,
VictorMarch 8, 2018 at 8:35 am #1473481Support DroidKeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘Search Page – Custom Post Name / post_type rename’ is closed to new replies.