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.
Once Mai Portfolio is installed and activated, will see Portfolio show up on the left-hand sidebar on your Dashboard.
How To Use
- Add your Portfolio items via Dashboard > Favorites > Add New.
- Edit the portfolio archive layout via the content archive settings in Customizer > Theme Settings > Content Archives > Portfolio.
- Edit the single portfolio layout via the single content settings in Customizer > Theme Settings > Single Content > Portfolio.
- Customize however you'd like!
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; });