Adding and Using Tags

Home Forums Calendar Products Community Events Adding and Using Tags

Viewing 15 posts - 1 through 15 (of 20 total)
  • Author
    Posts
  • #47857
    Jim
    Participant

    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!

    #47861
    Jonah
    Participant

    Hi Jeffrey,

    I’m going to move this over to the Community Events forum where someone will be able to help you there.

    Regards,
    Jonah

    #47864
    Jim
    Participant

    Ok Jonah… Casey told me to put it here LOL

    #47895
    Barry
    Member

    Hi 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?

    #47996
    Jim
    Participant

    Good 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?!

    #47997
    Jim
    Participant

    Ooops, the code didn’t post:

    #48004
    Barry
    Member

    Hi 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!

    #48013
    Jim
    Participant

    Here you go:

    #48014
    Jim
    Participant

    that didn’t work either…can i just email please?

    #48017
    Barry
    Member

    Yeah 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):

    http://pastebin.com/VXX282ZS

    #48019
    Jim
    Participant

    Great, Thanks!!
    Email has been sent “ATTN: Barry”

    #48174
    Barry
    Member

    Hi 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!

    #48277
    Jim
    Participant

    Have 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:

    #48278
    Jim
    Participant

    and 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.

    #48325
    Barry
    Member

    I’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.

Viewing 15 posts - 1 through 15 (of 20 total)
  • The topic ‘Adding and Using Tags’ is closed to new replies.