WordPress.org

Ready to get started?Download WordPress

Forums

Pronamic Google Maps (mashup) - different icons (2 posts)

  1. zew
    Member
    Posted 2 years ago #

    Hello everyone,
    I'm making a website cataloging touristic attractions in my area.
    I used the Pronamic Google Maps plugin with "mashup" code to display a map of all posts.

    #<?php
    # pronamic_google_maps_mashup(
    # array(
    # 'post_type' => 'post'
    # ) ,
    # array(
    # 'width' => 960 ,
    # 'height' => 650 ,
    # 'map_type_id' => 'roadmap' ,
    # 'marker_options' => array(
    # 'icon'=> 'http://myserver.pl/photo/icon.png'
    # )
    # )
    # );
    #?>

    Works perfect, but I would like to make it display different icon .png file, acording what the category of the post if.

    For example: post category is "castle" ----> the icon file will be "castle.png"

    Sounds trivial, but I can't solve that.
    Will you help me? Pls.
    Zew

  2. zew
    Member
    Posted 2 years ago #

    OK, different approach,

    What is the name o post category variable?
    I mean - the variable that contains category of the post currently displayed?

    Best,
    Zew

Topic Closed

This topic has been closed to new replies.

About this Topic