• Resolved coelder

    (@coelder)


    I am trying to create a permalink for each state that lists all events for that state. I’ve got a large list of events (over 1,000). However, there are no links that I can find that would take me to a specific state.

    I know you can filter out states on the Event Search page but I would like a permalink for visitors to click for each state.

    My ideas are this but I’m not sure how to accomplish them:
    – Create automatic Tags for each state based on the location information then use those tags as links
    – Find a way to create a link for the existing state attribute that is stored in the Event through a Location association

    Any ideas are appreciated.

    Thanks!

    http://wordpress.org/plugins/events-manager/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi,

    I think the easiest way to do this would be to use either categories or tags for States. Once you’ve got that in place, it’ll be easy to use the standard templates of your theme to show the events.

    If you don’t have many events to add tags / categories to, that’s probably the way to go.

    Thread Starter coelder

    (@coelder)

    That’s what I was thinking.

    Do you know of a good way to Tag existing events that have already been labeled with locations? I’m trying to keep from going through all 1,000 events by hand and tagging by state.

    Suggestions?

    I think what you’d need to do is to write some code to loop through each event in wp_em_events and grab the location_id, then look that up in wp_em_locations and grab the location_state and use that to set the correct tags on the event.

    Thread Starter coelder

    (@coelder)

    Is there a thread or tutorial that would guide me how to do that? My php experience is limited but I can figure most stuff out. Just need a starting point and guide to what I’m ultimately trying to code.

    Plugin Support angelo_nwl

    (@angelo_nwl)

    sorry can’t give you a sample snippet or a guide for this since I haven’t tried it yet.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Create Page For Specific Events in a State’ is closed to new replies.