Filtering by multiple category types

Map List Pro (from version 3.6.11) allows you to add additional categories and filters. Only the main categories can be used for limiting the locations added to the map.

Additional categories use the built in WordPress taxonomy system. To add an additional taxonomy you need to make sure it is registered against the maplist post type – this will make the additional categories show in the editor, and allow them to be used for filtering by the user. Use this code to add an additional “Food” taxonomy (add this to your theme’s functions.php file – always take a backup of this file just in case you run into any issues):

Then you need to add usealltaxonomies=”true” to your shortcode to make them display in the front end.

SmartRedFox has written 30 articles