search
top

WordPress Plugin basics: Geolocation

After seeing and article, an attack of whin has led me to geotag my posts from my iPhone :)
[popeye ids='273,275']
I’m using the WordPress iPhone app, which you can download from iTunes, and the associated plugin Geolocation, built by Chris Boyd.

It’s not a megatool, it’s very simple:

  • iPhone: adds customs geotags, longatude and latitude to your post.
  • Geolocation: reads the tags, inserts a link, and when you hover over it, you see a map

It’s nice not to have too much to think about. If you want more more power, there is always WP Geo and Geotag which are similar and allow you to create custom maps, with your own markers etc.

Calculating the ratio of my Portfolio items

I want to take screenshots of my work, and post them on the portfolio page of my site.

The template that I’m using is one that I found for free from smashingmagazine.com, and has such has it’s own custom way or showing my portfolio.

What I’ve quickly realised is that I need to take my screenshots at the correct ratio, or they get squashed/stretched, as opposed to just showing the top left of the image, unstretched.

Each portfolio item is required to have an image to fit in the ‘polaroid’ styled div, that is 290(w) by 230(h). This being the case, all my images need to be of the ratio 1.261:1.

To calculate the right height, I do the following:

w / r = height

example:

1024 / 1.261 = 812

Simple, but important :)

top