Custom Taxonomy – Filter by category
-
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; }
- This topic was modified 4 years, 10 months ago by .
- This topic was modified 4 years, 10 months ago by .
The page I need help with: [log in to see the link]
- The topic ‘Custom Taxonomy – Filter by category’ is closed to new replies.