Jump to content

VinceGledhill

Members
  • Posts

    133
  • Joined

  • Last visited

Everything posted by VinceGledhill

  1. Hello People. I have a site that I am trying to paste multiple pins on a single map in a wordpress site, using cbxgooglemap plugin and advanced custom fields for my lat and long information. The following code works fine for one pin, on one map. echo do_shortcode('[cbxgooglemap lat="'.get_field('latitude').'" lng="'.get_field('longitude').'" ]'); However, when I try to post it within the loop, I simply get multiple maps, instead of one map, with multiple pins. Here is the code that doesn't work correctly, it gives me 3 maps. <?php $justMap = new WP_Query(array( 'posts_per_page'=> 3, 'post_type' => 'airfield_card' )); while($justMap->have_posts()){ $justMap->the_post(); echo do_shortcode('[cbxgooglemap lat="'.get_field('latitude').'" lng="'.get_field('longitude').'" ]'); } ?> Please can someone tell me how to alter the code so that a single map is outside the loop, but still embedding each pin from the loop. Kind Regards VinceGledhill
  2. No, I'm looking to have a PHP site instead of using joomla. I have been building it in a temp directory http://www.airfieldcards.com/vg_temp/by_name.php I get the menus to show on the left, but don't get it to load the correct card. It simply shows a blank card on the right.
  3. HI People. I have a website which uses Joomla. However, it's a pain in the backside to administer. Everything has to be done three fold in the back end to get anything done. Could someone point me towards somewhere where I can learn how to make the menu dynamically with information from the DB? Regards Vince Gledhill
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.