You can use the Custom Content Types feature to custom post types (CPTs) to your site. These CPTs allow you to add content that doesn’t necessarily fit into a post, but isn’t right for a static page either. Since this is part of Jetpack, you can even switch themes without losing these custom post types!
Portfolios
The Portfolio custom post type allows you to manage and showcase your projects on your site. To enable it, go to Jetpack → Settings → Writing in your WordPress Dashboard and toggle on the Portfolio option under Custom Content Types.
Once enabled, you can then choose to display the portfolio using the portfolio shortcode ( [portfolio]
) or add a link to it from your site menu.
Testimonials
The Testimonial custom post type allows you to add, organize, and display your testimonials. If your theme doesn’t support it yet, you can enable it by activating the Custom Content Types feature in your Jetpack settings. Once activated, go to Jetpack → Settings → Writing in your WordPress Dashboard and toggle on the Testimonials option under Custom Content Types.
You can then choose to display testimonials using the testimonial shortcode ( [testimonials]
) or you can view a full archive of your testimonials at yourgroovydomain.com/testimonial.
By default, when creating Testimonials, you cannot add tags or assign the testimonial to one of the categories on your site. If you would like that option, you will need to add a code snippet to the site. In the example below, we add support for categories:
/**
* Add Category support to the Testimonial Post Type available in Jetpack.
*/
add_action( 'init', function () {
register_taxonomy_for_object_type( 'category', 'jetpack-testimonial' );
} );
Simple Food Menus
You can add food menus to your theme by adding the following code to the functions.php file of your theme:
/**
* Add nova food menu support available in Jetpack.
*/
function yourthemeslug_jetpack_setup() {
add_theme_support( 'nova_menu_item' );
}
add_action( 'after_setup_theme', 'yourthemeslug_jetpack_setup' );
The theme Confit uses these menus.
Privacy Information
Custom Content Types are deactivated by default. You can enable them from the Jetpack → Settings → Writing tab in your WordPress Dashboard.
Data Used | |
---|---|
Site Owners / Users Because custom post types are simply posts at their core, this feature will use all the post’s data (author, content, etc.) and metadata in the creation of the content. Additionally, for activity tracking (detailed below): IP address, WordPress.com user ID, WordPress.com username, WordPress.com-connected site ID and URL, Jetpack version, user agent, visiting URL, referring URL, timestamp of event, browser language, country code. | Site Visitors None. |
Activity Tracked | |
Site Owners / Users We track when and by which user the feature is activated and deactivated. We also track when and by which user the specific custom content types (Testimonials and Portfolios) are enabled or disabled. | Site Visitors None. |
Data Synced (Read More) | |
Site Owners / Users We sync options that identify whether the feature is activated, as well as which custom content types have been enabled. We also sync all the post content and anything related to the post. See our Sync documentation for further information on what we sync around posts and pages. | Site Visitors None. |