Wordpress Themes
A Random Image

core.form-ula

RSarrach

Google map into your post

The following will guide you on how to place a Google map into your post:

Step 1. Know your location. This will have to be an address, city, state, country OR a longitude + latitude numeric value.

Step 2. Start your new post

Step 3. Go to the Location/GeoPress section of the Wordpress write post and place you text into the address bar

Step 4. Hit the generate code button.

Step 5. Select the code section of your post. (this is next to the visual tab) Once there place the text “INS3RT_MAP”

Step 6. Publish your post

About GeoPress

GeoPress is a tool to help you embed geographic locations into your blog posts, and also include this information in your RSS/Atom syndicated feeds using the GeoRSS standard.

To begin using GeoPress, write a new article and enter a location name a geographic address in the appropriate fields. Press enter, or click the Geocode button to verify on the map that this is the appropriate location. Additionally, you can click on the map to set a location. Once you save your post, the geographic location is stored with the post entry. If you want to just enter latitude and longitude, then enter [latitude, longitude] into the address field.

Adding to your post

You can insert a dynamic map into your post automatically by selecting “Automatically add a map after any post” in the GeoPress options tab. This map will be inserted at the end of any post that has a location set for it.

Alternatively, you can manually insert a map by putting INS3RT_MAP. anywhere in your post text. The map will use the default map size as sent in your GeoPress options. You can override this size by passing in INS3RT_MAP.(height,width), where height and width are the size of the map, in pixels.

You can also insert the geographic coordinates, or address of the post by using

42.331685, -83.047779
, and
detroit
, respectively. These will be output using Microformat styling.

Limitations

Currently, GeoPress only supports a single geographic coordinate. In the future it will support lines, polygons, and multiple points.

Template Functions

These functions are available from GeoPress to further customize embedding geographic information into your blog. The Post functions return information about a specific post, or entry, and should be placed within the the_post() section of your templates. General functions can be used anywhere in your blog template and will return information pertaining to all of your geographic locations (such as maps, lists, links to locations)

General Functions

The following functions return the output. This allows you to perform any processing on the return text that you may want. To finally place the result in your template, use echo. For example, to output the stored address: <?php echo the_address(); ?>

geopress_map(height, width, num_locs): returns a GeoPress map of the last num_locs number of locations. If no value is set for num_locs, then all locations are plotted. caution: plotting all locations could slow down/prevent people viewing your blog.

Post Functions

geopress_post_map(height, width): returns a GeoPress map of the current post’s location

the_coord(): returns the coordinates for the post as an array, latitude, longitude

the_address(): returns the address for the post

the_location_name(): returns the saved name for the post’s location

the_geo_mf(): returns the coordinates of the post in Microformat geo format

the_adr_mf(): returns the address of the post in Microformat adr format

Template Functions

GeoPress provides the ability to view all the posts at a specific location by putting “loc=#” in the url, where # is the id number of the location, or “location=savedname”, where savedname is the the name of the location (e.g. Home or Trafalgar Square)

geopress_location_name(): prints out the name of the location if it is passed in by the url..

geopress_locations_list(): prints out an unordered list of locations and links to display posts at that location.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Reddit
  • Slashdot
  • SphereIt
  • StumbleUpon
  • Technorati
, , , , , ,

------------------------------------------------------------------------------------------------------------

No Comments, Comment or Ping

Reply to “Google map into your post”

You must be logged in to post a comment.






SparkStats