Home › Forums › Calendar Products › Events Calendar PRO › Additional Event Category in PRO
- This topic has 10 replies, 2 voices, and was last updated 11 years, 9 months ago by
Casey D.
-
AuthorPosts
-
June 22, 2014 at 2:17 pm #243104
Christopher
ParticipantHi guys,
I am, along with a load of other users, I am sure – looking for a way to add an additional Event Category where I can add regions. Sort of how the Americans talk about States. A list of checkboxes, exactly the same as the default “Event Categories” works.June 23, 2014 at 3:40 pm #245360Casey D
MemberHello christopher,
Thanks for contacting us, this is a great idea!
You should be able to add as many ‘Event Categories’ as you want. Are you looking to create an additional custom taxonomy?
It seems like a custom taxonomy should be easy enough to make. http://codex.wordpress.org/Taxonomies
If you can give me a more specific example of how you would like to use it, I could maybe come up with code or give you better info.
Typically that level of customization goes beyond the scope of the forums, but I’ll see what I can do.
Does this make sense? Let me know if this doesn’t work for you.
Cheers!
– Casey Driscoll
June 24, 2014 at 1:45 am #246534Christopher
ParticipantHi Casey,
Thanks man, I appreciate it 🙂
Sorry for not explaining myself well. Let me try with some more detail!
I am referring to the ‘tribe-bar-filters’ area.
At the moment, in the ‘list view’, I have:
1) Events From
2) Search
3) Near
What I am wanting to do is add an additional “4)” to list Provinces (reffered to as States above).It would also be awesome if you could show me how to change the actual words used in the ‘tribe-bar-filters’ area because, while I can sort out the CSS, I can’t for the life of me figure out a function to do that.
I think that hardcoding these 2 options into the Cal Pro back-end would go a long way to making this plugin even more awesomely awesome!Giving your users the power to customise the ‘titles’ and ‘fields’ within the searchbar ie in my example, I would like to change:
“EVENTS FROM; Date” “SEARCH; search” “NEAR; Location”
TO
“EVENTS FROM; Date” “SEARCH; search” “Province; Select” “NEAR; Location”
Then a bonus would be some examples of a function(s) to change those default values eg “SEARCH; search” to “SEARCH; Find Event”.Thanks again man!!
June 24, 2014 at 1:47 am #246541Christopher
ParticipantHere is a pic of what it looks like at the moment 🙂
http://i1298.photobucket.com/albums/ag44/Christopher_John_Combrink/Untitled_zpsa7218403.jpeg
June 24, 2014 at 11:27 am #247662Casey D
MemberHello christopher,
Thanks for the updated info!
Just to help further communication (because it can be confusing) the standard top bar with the ‘.tribe-bar-filters’ class is referred to as the ‘Tribe Search Bar’ and the one below that made by the Filter Bar plugin is referred to the ‘Tribe Filter Bar’
You would like to change the blue underlined words in the ‘Tribe Search Bar’ to add a fourth option, a drop down of provinces using a new custom taxonomy. As a bonus you’d like to be able to change the light gray ‘Search’ placeholder text to ‘Find Event’.
Adding the fourth ‘Province’ option is not impossible, and may be suitable for a tutorial, but it will take more than a bit of work. You’ll not only have to populate the options, but then properly query the data on submit. This is relatively straight forward when we program the controls, but when we open it up to user filters the programming becomes a bit more intricate. There is a larger necessity for sanitizing the data, as an example. Ultimately it may be more fitting for the Filter Bar to handle this, but even that comes with issues.
I’m not sure I can get you a solid answer right now, but it certainly seems like a great idea. I will run it by the production team to see if we can get you a work around or other solution in the interim.
Does this make sense? Wish I could be more helpful!
Cheers!
– Casey Driscoll
June 24, 2014 at 11:39 am #247706Casey D
MemberHello christopher,
Turns out there is a tutorial already for this!
https://theeventscalendar.com/understanding-the-tribeeventsbar/
This should give you quite enough to get started. Let me know if I can help with anything else.
Cheers!
– Casey Driscoll
June 24, 2014 at 2:44 pm #248232Christopher
ParticipantCasey, you guys at Tribe are awesome. There are other companies offering (and charging more for….) plugs who’s support really sucks.
It is quite late here now, so I am not even going to open that link, but I will have a look at it tomorrow!
Thank you for clearing up the filter vs search bar too!
I am going to leave this unanswered until tomorrow, so I can have a look at the other tutorial and put my feedback here for others who may have the same request!June 25, 2014 at 2:38 am #249526Christopher
ParticipantThanks again Casey, I am going to have a good look at this now that it’s day-time again!
Quick one – you didn’t touch on how I can change:
“As a bonus you’d like to be able to change the light gray ‘Search’ placeholder text to ‘Find Event’.”June 27, 2014 at 9:56 am #255477Casey D
MemberSorry for the delay!
Here is a snippet that will do what you need! Plop it into your functions.php file.
https://gist.github.com/caseypatrickdriscoll/d8d2fbd21ef152ccad6b
Does this make sense? Let me know if this doesn’t work for you.
Cheers!
– Casey Driscoll
June 30, 2014 at 1:28 am #261480Christopher
ParticipantThanks so much Casey!
I will see what I can do this evening and let you know!
July 1, 2014 at 2:03 pm #265323Casey D
MemberSounds great!
I’ll go ahead and close this thread for now. Let us know if we can help with anything else.
– Casey Driscoll
-
AuthorPosts
- The topic ‘Additional Event Category in PRO’ is closed to new replies.

