Icons for different post types

Home Forums MapPress Support Icons for different post types

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #12193
    timd
    Participant

    Hi there,

    Is it possible to pull in different icons for different post types and thus create a mash up with all the different icons denoting the various post types.

    I am using a Pippin plugin (‘custom content types’) to create the post types and have successfully got single post types into a mashup alongside a single custom icon.

    Many thanks

    Tim

    #12195
    Chris
    Keymaster

    Hi,

    If you’re using the ‘geocoding’ fields in the settings, you can specify a custom field to use for the icon in automatically-generated maps.  You could set that field value when you save your form.  Or, if you want to use some logic to do it there’s a PHP filter ‘mappress_poi_iconid’ you could use to set it by post type, etc.

    #12197
    timd
    Participant

    Great thanks Chris,

    So I’d just have to write up a little code and pop that in the functions.php and then the auto generated maps will inherit the appropriate icon as per code depending on their post type??

    Assuming I’m on the right lines might you be able to point me toward the php code I’ll need to scribble up or at least a very rough example? Would be hugely appreciated. Thanks

    Tim

     

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.