PMC Plugins
Pmc Profiles

PMC profiles plugin

This plugin registers two post types - both of which should be renamed via theme configuration:

  1. pmc_profiles - The profiles post type.
  2. profiles-landing-page - A post type for landing pages that display collections of content about profiles.

This plugin also registers up to four taxonomies for the pmc_profiles post type. These by default are named primary through quaternary and can be renamed using filters below.

A settings page and custom fields for the profiles are also added with Fieldmanager.

All front-end templates are handled by Larva patterns, and this plugin provides the PHP controllers that plug data into the templates.

Usage notes

Setup in Theme

Add the following filters in configuration:

  • pmc_profiles_post_type_arguments - Filter the post type slugs for the profiles post type and landing post type.
  • pmc_profiles_taxonomy_args - Filter the taxonomy slugs for primary - quaternary taxonomies. Return null for any that aren't in use.

Create a new menu for PMC Profiles Header. Set up the dropdown select menu by adding select_menu class to the menu item with children in the PMC Profiles Header menu location.

Additional Filters

  • pmc_profiles_term_exclude_parent - Return true to exclude parent terms from the PMC_Profiles->get_term_list

Things to Know

This plugin is dependent on certain classes from pmc-core-v2 that are used in the template-parts. To see a list of this classes that must be added to non-core-v2 themes, see this PR in Indiewire (opens in a new tab).