Home › Forums › Calendar Products › Community Events › Adding and Using Tags
- This topic has 19 replies, 3 voices, and was last updated 10 years, 11 months ago by Barry.
-
AuthorPosts
-
May 7, 2013 at 12:35 pm #47857JimParticipant
We’re using the Pro version of The Events Calendar in conjunction with the Community plugin and are VERY happy with it. However there is a functionality that I need and can’t seem to get to work correctly
Our site has users from all over the US and I’d like to make just a bit more user friendly for them.
Here’s the ‘road map’
-User enters the Events page and see a lot of different events, but just wants to know about the ones in their particular state-What I’d like to do is offer them a drop down that utilizes tags [ ] where they can filter the events by state.
My train of thought…
-In the community entry area I’d like to do the following
1. Add a hidden tags field to the submission form
2. This field echos the $_VenueState and/or $_VenueProvince variables
3. Upon submit it stores these echoed variables as tags associated with that event post
4. The the select menu can be created with options that use http://chefkey.com/events/tags/State_Name_Here/I’m hoping you an point me in the right direction!
Thanks so much!
May 7, 2013 at 12:54 pm #47861JonahParticipantHi Jeffrey,
I’m going to move this over to the Community Events forum where someone will be able to help you there.
Regards,
JonahMay 7, 2013 at 1:09 pm #47864JimParticipantOk Jonah… Casey told me to put it here LOL
May 8, 2013 at 7:12 am #47895BarryMemberHi Jeffrey, there may not be too much we can do here to help as you are discussing a fairly bespoke piece of work. Here is a resource that can guide you through adding post categories and tags to events – of course in your case you may only want tags:
https://theeventscalendar.com/integrating-wordpress-categories-tags-with-your-events/
Or alternatively you might want ‘event tags’ that exist independently of post tags, in which case you could take a look at the following from the WordPress codex:
http://codex.wordpress.org/Function_Reference/register_taxonomy
(Tags are basically non-hierarchical taxonomies.) Beyond that were there any other areas where you needed us to point you in the right direction?
May 9, 2013 at 3:22 am #47996JimParticipantGood Morning Barry
Thanks for the response, sorry it’s taken so long to get back…been a crazy week 🙂
So I’ve testing out some possibilities.
On our development site I’ve created the following test post:
http://squeekpress-ws8.info/event/test-33445/
-I added/registered the tags functionality as instructed in Rob’s tutorial:https://theeventscalendar.com/integrating-wordpress-categories-tags-with-your-events/ (and that all worked fine)
-I then added a couple lines at the bottom of the SingleView (just to make sure tags were being added to the post and to see if I could actually grab the Event Post’s region). These lines are:
[code]
[/code]
To This point – GREAT….BUT 🙁
When I click “boston” or “massachusetts” I get a “Page Not Found” and when “MA” is clicked am gettin a result for a post ompletely unrelated to the Event Post itself.Ideally what I’d like to happen is have the tribe_get_region() echo as a tag and store to that Event Post automatically (all out of sight of the user).
Suggestions?!May 9, 2013 at 3:23 am #47997JimParticipantOoops, the code didn’t post:
May 9, 2013 at 6:40 am #48004BarryMemberHi Jeffrey – unfortunately our forum does not deal with code snippets quite as you might expect. Until that’s resolved it would be best to use a service such as Pastebin and paste the links to your code in here.
Sorry for the inconvenience!
May 9, 2013 at 7:11 am #48013JimParticipantHere you go:
May 9, 2013 at 7:12 am #48014JimParticipantthat didn’t work either…can i just email please?
May 9, 2013 at 7:17 am #48017BarryMemberYeah of course – though we’ll progress the issue here in the forum – but you can send the code or a link to the code to pro-at-tri-dot-be, mark your email for my attention and including a link to this thread, too 🙂
I’m not sure why you can’t post the link, it should work like this (though this snippet is completely unrelated to your situation):
May 9, 2013 at 7:57 am #48019JimParticipantGreat, Thanks!!
Email has been sent “ATTN: Barry”May 10, 2013 at 8:59 am #48174BarryMemberHi Jeffrey, I haven’t seen this email yet – can you send again or try posting the link to your code here one more time? Thanks!
May 12, 2013 at 3:29 am #48277JimParticipantHave emailed it yo pro-at-tri-dot-be again and attempting to repaste the code again. Have added backslashes “\” just remove those and you’ll have the code:
May 12, 2013 at 3:35 am #48278JimParticipantand OF COURSE that didn’t work >> have to admit this is a bit frustrating/ANNOYING. Especialy since the last 8 posts pertain to C&P’ing a bit of code to the formun and we’re no closer to a resolution.
Casey received my initial email that I sent to pro-at-tri-dot-be, perhaps he’s getting them.May 13, 2013 at 8:01 am #48325BarryMemberI’ll check with Casey: while posting code directly won’t work very well you should still be able to post a link to any code hosted on Pastebin or a similar service.
But let me check in with the team and see where this email is.
-
AuthorPosts
- The topic ‘Adding and Using Tags’ is closed to new replies.