• Resolved InventiveWebDesign

    (@inventivewebdesign)


    I have a novomap on our home page: https://bdi.inventivewebdesign.com/

    On the backend I have an area setup for a custom post type called Project and they have a custom taxonomy called Project Tags. One of these tags is Home Page Map (home-page-map). On the backend if I look at the urls I get this:

    • post_type=project
    • taxonomy=project_tag
    • tag_ID=144 (for home-page-map)

    On the back end in Novo Maps is says “You can filter markers per category/tag” but the only category that it pulls in is from posts. I don’t see any of my custom post tags here.

    How can I filter my map to only show items with the “home-page-map” category selected?

    The current map shows 5 items and the pin in Africa does not have home-page-map selected but it still shows.

    I have tried to do this via shortcode by adding [novo-map id=2 category=”home-page-map”] or [novo-map id=2 tag=”home-page-map”] but that did nothing. All pins still show.

    If I use…

    • [novo-map id=2 tag=”144″]
    • [novo-map id=2 tag=144]
    • [novo-map id=2 category=”144″]
    • [novo-map id=2 category=144]

    …nothing shows up on the map. So that seems to be filtering but I don’t know how to make it filter the tag_id I want.

    I have added the ability to add a marker to my custom post type by using the code below in my functions.php. Is there something else I need to add to have novomaps filter by my project tag/category?

    /* ADD NOVO MAP TO PROJECTS POST TYPE */
    add_filter( 'novo_map_allowed_post_type', 'novo_map_post_types' );
        function novo_map_post_types($types) {
          $types = array( 'post', 'page', 'project' );
        return $types;
    }

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey there —?did you ever figure this out? Running into a similar challenge.

    Thread Starter InventiveWebDesign

    (@inventivewebdesign)

    It was awhile ago. I think what we decided to do was only add NovoMap options to the custom taxonomy items we wanted to see on the home page map. We didn’t actually do it by category. There is some code that you can use to add the novomap options to the bottom of a custom taxonomy…

    /* ADD NOVO MAP TO PROJECTS POST TYPE */
    add_filter( 'novo_map_allowed_post_type', 'novo_map_post_types' );
    function novo_map_post_types($types) {
    $types = array( 'post', 'page', 'project' );
    return $types;
    } 

    In this case, ‘project’ is our custom taxonomy.

    You can see the final version here: https://www.blastdeflectors.com/

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom Taxonomy – Filter by category’ is closed to new replies.