Jump to content

Archived

This topic is now archived and is closed to further replies.

respectgb

Show Maps in postloop using Map shortcode from

Recommended Posts

respectgb+    1
respectgb

Hi,

 

I'm currently re-developing our company website at http://www.respectgb.com using dms. Everything is going great at the minute, however; we are wanting to display google maps to show locations of our sites within the post loop. I have got them displaying perfectly in the single post pages (http://www.respectgb.com/north-nottinghamshire-south-yorkshire/) but I cannot figure out how to make them visible in the post loop on category archives / postloop (http://www.respectgb.com/two-burial-parks/).

 

I am running dms v1.0.3

And the google maps plugin that I am using is: "google maps" by wpmu (http://premium.wpmudev.org/project/wordpress-google-maps-plugin/)

 

Any help would be greatly appreciated.

 

Thanks in advance.

 

Luke

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

Hi,

 

Category, Archives etc.. will display the excerpt of your posts. Therefore, you will want to create a custom excerpt using the Excerpt section when creating/editing your posts. In this area, add your maps code.

 

http://cl.ly/image/2Q1d063b0g2c

 

Then change the length of your excerpt by editing the PostLoop sections options.

 

http://cl.ly/image/2f43363o0K34


Please search our forums, before posting!

Share this post


Link to post
Share on other sites

  • Similar Content

    • HenryMote
      By HenryMote
      Hi guys,
       
      I have DMS and the maps isnt working. Here's the link to the site where you can see the error .http://plumb-now.co.uk/
       
      Thanks for your help!
       
    • MrFent
      By MrFent+
      I'd like to request the option to display the "Satellite," "Hybrid," and "Terraine" in the Maps section. 
      I was able to manually accomplish this by changing line 202 in the maps.js from:
      mapTypeId:       google.maps.MapTypeId.ROADMAP,
      to:
      mapTypeId:       'satellite',
      But it would be nice if there was a section option to do this. 
      Also, the map zoom level 18 isn't the highest zoom level that Google Maps is able to display. Could you please increase the number to at least 19? Thanks!
       
    • StuLeeUK
      By StuLeeUK+
      Hi, could someone point me in the right direction please as I have no idea where i might be going wrong here.
      I've added the maps section but all I get is a blank space.
      I have created an API key (assuming that was the right thing to do) but nothing I do seems to change anything, just always have an empty placeholder. With or without the API key it doesn't make any difference.
      site is www.tackandfeed.co.uk
       
    • PeriniNero
      By PeriniNero+
      We are building a Custom Post Type with Custom Fields and Custom Taxonomies.
      The only thing we dont understand is how to embed the Custom Fields including header tags and stuff in the Postloop (now we use a text-box below the postloop section but also SEO wise this is not best pratice).
      So we thought to copy the dms Postloop section to our child theme and rename this, to add an extra Postloop section to our theme. Is this the way?
      What exactly to adjust in those 3 files class.posts.php, section.php and style.less (at this point we know how to change the thumb LOL) and where to add the Custom Fields shortcodes?
      Thanks.
    • gerolan
      By gerolan+
      Whenever I try to use the maps section the map doesn't display and the console throws a MissingKeyMapError.
×