People
Registers a custom post type for managing info and displaying a nice grid of employees
Extension Name
t2/people
Properties (t2.json)
Add a people post type and a post insert block.
Override the default innerblock template.
Image ratio (one of 1-1, 4-3, and 16-9).
features
The people post type uses or not a single post page.
Add a email post meta.
Add a phone post meta.
Add a mobile post meta.
Add a bio post meta.
Add a role taxonomy.
Add a department taxonomy.
Show the people_email post meta in people meta block.
Show the people_phone post meta in people meta block.
Show the people_mobile post meta in people meta block.
Show the people_bio post meta in people meta block.
Show the role taxonomy terms in people template.
Show the role department terms in people template.
Show icons next to post meta (phone, email).
Rewrite slug string for the people post type.
If the people post type has an archive page.
Extension Filters
-
t2/extension/people/key_role
Allows to override programmatically the extension role taxonomy key that is used to handle taxonomy registration (defaults torole
) -
t2/extension/people/key_department
Allows to override programmatically the extension department taxonomy key that is used to handle taxonomy registration (defaults todepartment
) -
t2/extension/people/card_inner_blocks
Allows to override programmatically the inner blocks rendered in the people card main info area -
t2/extensions/people/image_fallback
Allows to override programmatically the people image fallback
Extension Screenshots
Note: the cards icons are setup using the T2 icons, and these can be overriden from the theme.
Card - Default View | Card - Extended View | Edit View | Edit View | T2 Settings |
---|---|---|---|---|
By default, the card shows: featured image, post title, role taxonomy terms, department taxonomy terms, people_email post meta, people_phone post meta |
The people card can be configured to include additional info, in this view the card shows: featured image, post title, role taxonomy terms, department taxonomy terms, people_email post meta, people_phone post meta, people_mobile post meta, people_bio post meta |
People custom post type fields | People custom post type fields | Example of enabling the mobile and bio options in t2.json file |