Pods + maps

Someone is asking about some difficult MySQL mapping stuff, I don’t understand it, but I do know of a relatively easier way to get custom post types, such as those created by Pods, onto a map in WordPress. I built this for Live Work Oakland, so I remembered the steps, and I sat down and cranked this out in about 30 minutes: Pods + Geo Mashup.

The CPT is called Location, and has three additional meta fields added: Address, City, and Zip Code. The issue folks were having in the forum thread was how to show it on a map, and for that I used another (terrific) plugin, Geo Mashup. One of the settings for that plugin is this ingenious reverse geocoding feature, which will construct the address from an array of fields you designate. This screenshot shows how it is configured on the lab site:


The map page is just the map shortcode showing all posts with location data (the lab site is configured to only show the Location post type, but you can be creative with it). For LWO I built it into the theme, so it shows on individual listings automatically. Check the documentation, it is a pretty nifty plugin!

If you want to try it out, add a location! That bit is done with Gravity Forms and an add-on plugin that allows you to save it to custom post types. I only included a few address fields, so some locations may not show up correctly on the map, but this is only a demo. Also, you’d want to show the custom fields on the individual location posts, but that is a different tutorial. If you don’t want to mess with a lot of custom coding, these plugins can do the heavy lifting for ya. ^_^

Here is the Location custom post type export from Pods: location.pods (copy the contents of the file and import, or just add the three fields yerself!)

Plugins used:

Proving the point

Susan Mernit wrote her impressions of a party she attended; she had a poor experience, and described her observations. If you follow any of the -isms in tech, this will not be news to you. For me the most significant part is that this happens during this pivotal time when Oakland’s tech scene is deciding how it is going to define itself; a lot of folks don’t want to be like San Francisco and Silicon Valley, because it plays out that a lot of people of privilege push everyone else out, of home, job and lifestyle.

But that is why the initial article is significant. As a cultural object, this post will be referenced for the defensive comments folks made to defend the party, and shut down Susan’s voice.

I read the comments before the post (I get all the comments in my inbox), so I was looking forward to seeing the hornet’s nest Susan had stirred, but on that point I was disappointed. It wasn’t a sponsored party by an incubator or anything (as pointed out in the editor’s note at the end of the post), but that didn’t diminish the fact that people treated Susan in a particular way. An appropriate response would have been to ignore the post, or explain that it was unfortunate it went down that way and open the channels to discuss how to make better parties. Because that is what humans should be doing, making life better and more meaningful at every opportunity.

Here are my short assessments of the comments attempting to shut Susan down:

  • Andrei – One’s experiences do not diminish those of others. Also, don’t use your family as a badge of diversity, it is tacky.
  • Eliot wrote a post – Susan was writing a narrative to explain the concepts we’ve developed to understand systemic bias in tech. One of them is the idea that something could be so simple, your mother could do it. If Susan feels that is apropos, then it is. I’ve no idea how someone could think the Mom is being insulted. I think the cut off for engaging in Mom-honor is rather young, but maybe it persists for some folks.
  • Adam – Passive-aggressive quips are not positive contributions to a conversation. This reply was essentially troll-speak. Also, mention of “respect”, which throws up a flag that some shared framework of honor is being used, which is obviously not the case.
  • Laura Dambrosio – This was a mean reply, which undermined a potentially interesting counter-point to the story.

Why do I care? I don’t, really. Susan is tough, and can handle the trolls. She is a women working in Oakland tech journalism, which is part of why this even got a reaction. But I wish our discourse were better. I disagree with Susan all the time! But I never have to attack her person or perspective to express that. And she never attacks me, either.

This is also an opening salvo in a battle of ideas that is about to envelop Oakland (how’s that for dramatic?!). If as the folks at the party claim, this wasn’t indicative of a particular set of cultural values, why the venom in the responses? If these folks are only tangential to the tech scene, what can we expect when we engage with the actual folks that will come in and influence the city with money, leverage and privilege? It’s going to happen, we know this. But it doesn’t have to be discussed like this.