Forums

WP Geo
Template code? (6 posts)

  1. WP4RE
    Member
    Posted 1 year ago #

    Hi,

    Is it possible to call a map via code added to my theme?

    I want to place the map elsewhere, actually, outside of the main content loop, thus not before or after the post...but well down the page, after a photo gallery and such. Is it possible with your plugin? Thus far I really like it.

    Thanks.

  2. Ben Huson
    Member
    Posted 1 year ago #

    You should be able to use wpgeo_post_map() in the loop.
    http://www.wpgeo.com/documentation/template-tags

    You could try using the same function passing the post ID outside the loop:
    wpgeo_post_map($post_id);

  3. WP4RE
    Member
    Posted 1 year ago #

    Biggity bam, that's exactly what I needed.

    I've been trying other mapping plugins, but they never worked as needed/wanted. Yours does! Thank you so much!!!

  4. jasonday
    Member
    Posted 1 year ago #

    Is it also possible to only show custom post types? (the only geocoded posts I will have)

  5. WP4RE
    Member
    Posted 1 year ago #

    I second this question.

  6. Ben Huson
    Member
    Posted 1 year ago #

    @jasonday

    Can you explain more fully what you mean.
    Do you only want to show a map on certain post type pages or create one map that only shows a certain custom post type?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags