Quantcast
Viewing all articles
Browse latest Browse all 37

Gravity Forms + FacetWP = Gravatar People

Image may be NSFW.
Clik here to view.
Screen Shot of OLE members

Having just finished presenting1 at NMC. I said we all need to document more, to show examples and explain what we did. Making the notes for the presentation last night and being able to use the blog posts I’d already written really showed me the value of reflecting on little things in an ongoing way. It’s amazing how much stuff I do that I completely forget even happened.

So this is how you’d make a gravatar people browser based on information submitted via a Gravity Form.2

Image may be NSFW.
Clik here to view.
The way you can use form element to populate a post body using the content template.

This image above shows the basic setup for the Gravity Form. Form fields essentially get combined with some HTML in the post body field. It’s pretty simple but it might help someone.

Image may be NSFW.
Clik here to view.
FacetWP setup to display gravatar images

This is the basic setup in FacetWP that generates the query and the display code. There are two elements. Element one is the query which tells which pieces of content you want. The second part is the display which shows the content that you’ve retrieved in whatever way you define.

The text version for the FacetWP template is below. There’s also a dab of CSS.

.person {
  float:left;
  margin: 8px;
  width:120px;
  height:200px;
}


1 Or at least talking in a room with humans in it. It was not of enough quality to justify the term presentation. I need to figure out why that felt so bad.

2 Could also do some stuff via the author information but that’s for another day.


Viewing all articles
Browse latest Browse all 37

Trending Articles