Mai Portfolio

Mai Portfolio is a versatile and lightweight portfolio plugin for Mai Theme. It creates a custom post type called “Portfolio” that has all of our Customizer layout settings ready to customize.

Learn how to install plugins here.

Once Mai Portfolio is installed and activated, will see Portfolio show up on the left-hand sidebar on your Dashboard.

How To Use

  1. Add your Portfolio items via Dashboard > Favorites > Add New.
  2. Edit the portfolio archive layout via the content archive settings in Customizer > Theme Settings > Content Archives > Portfolio.
  3. Edit the single portfolio layout via the single content settings in Customizer > Theme Settings > Single Content > Portfolio.
  4. Customize however you'd like!

Optionally display portfolio items anywhere you'd like via Mai Post Grid block with the post type setting set to Portfolio.

Change Portfolio Permalink Base and Taxonomy Slugs

You can change the portfolio post type base as well as the portfolio taxonomies (type/tag) slugs with the following filters added to functions.php of your theme, or a custom functionality plugin.

/**
 * Change portfolio post type args.
 * 
 * @param array $args
 * 
 * @return array
 */
add_filter( 'mai_portfolio_args', function( $args ) {
	$args['rewrite']['slug'] = 'things';
	return $args;
});

/**
 * Change portfolio type taxonomy args.
 * 
 * @param array $args
 * 
 * @return array
 */
add_filter( 'mai_portfolio_type_args', function( $args ) {
	$args['rewrite']['slug'] = 'things-type';
	return $args;
});

/**
 * Change portfolio tag taxonomy args.
 * 
 * @param array $args
 * 
 * @return array
 */
add_filter( 'mai_portfolio_tag_args', function( $args ) {
	$args['rewrite']['slug'] = 'things-tag';
	return $args;
});
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us