Title: Portfolios
Author: Jason
Published: <strong>2013 年 8 月 1 日</strong>
Last modified: 2019 年 1 月 20 日

---

搜索插件

![](https://ps.w.org/portfolios/assets/banner-772x250.jpg?rev=952465)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/portfolios_e0e9ef.svg)

# Portfolios

 作者：[Jason](https://profiles.wordpress.org/themeblvd/)

[下载](https://downloads.wordpress.org/plugin/portfolios.1.1.6.zip)

 * [详情](https://cn.wordpress.org/plugins/portfolios/#description)
 * [评价](https://cn.wordpress.org/plugins/portfolios/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/portfolios/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/portfolios/#developers)

 [支持](https://wordpress.org/support/plugin/portfolios/)

## 描述

This plugin adds a “Portfolio Item” custom post type with associated “Portfolio”
and “Porfolio Tag” taxonomies.

Any instances of `the_tags()` by your theme when on a portfolio item post are filtered
to use Portfolio Tags.

#### Theme Blvd Integration

If you’re using a theme with [Theme Blvd](http://www.themeblvd.com) framework v2.3
+, this plugin has some cool integration features.

 * Breadcrumb integration for Portfolio Items and associated taxonomy archives.
 * Portfolio and Portfolio Tag WordPress can display in grid mode.
 * Post List and Post Grid page templates can accept “portfolio” and “portfolio_tag”
   custom fields to filter posts.
 * Standard “Post Options” meta box is integrated into the portfolio item custom
   post type.
 * With our [Layout Builder](https://wordpress.org/plugins/theme-blvd-layout-builder)
   plugin, options to pull posts by Portfolio or Portfolio Tag are added to verious
   elements.
 * With our [Shortcodes](https://wordpress.org/plugins/theme-blvd-shortcodes/) plugin,
   you can use “portfolio” and “portfolio_tag” parameters for `[post_list]` and `[
   post_grid]` shortcodes.
 * With our [Sliders](https://wordpress.org/plugins/theme-blvd-sliders/) plugin,
   you can use “portfolio” and “portfolio_tag” parameters with `[post_slider]` shortcode.

## 安装

 1. Upload `portfolios` folder to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.

## 常见问题

  Will this plugin work if I’m not using a Theme Blvd theme?

Yup, but it just won’t do a whole lot. You’ll essentially end up with a “Portfolio
Item” custom post type and associated “Portfolio” and “Portfolio Tag” taxonomies.

  How can change the number of columns and rows in portfolio archive grids?

function my_grid_columns() {
 return 3; // Number of columns (1-5) } add_filter(‘
themeblvd_default_grid_columns’, ‘my_grid_columns’);

    ```
    function my_grid_rows() {
        return 4; // Number of rows per page
    }
    add_filter('themeblvd_default_grid_rows', 'my_grid_rows');
    ```

  How can disable portfolio archives from displaying in a grid?

function my_portfolio_mods() {

    ```
        $portfolios = Theme_Blvd_Portfolios::get_instance();

        remove_filter( 'themeblvd_theme_mode_override', array( $portfolios, 'theme_mode' ) );
        remove_filter( 'themeblvd_template_parts', array( $portfolios, 'template_parts' ) );

    }
    add_action('after_setup_theme', 'my_portfolio_mods');
    ```

  How can I change the sidebar layout of Portfolio and Portfolio Tag archives?

If you’re using a theme with Theme Blvd framework 2.5+, there’s a user option for
this at _Appearance > Theme Options > Layout > Sidebar Layout > Portfolios_. And
if not, you can use the following code.

    ```
    function my_sidebar_layout( $layout ) {

        if ( is_tax('portfolio') || is_tax('portfolio_tag') ) {
            $layout = 'full_width';
        }

        return $layout;
    }
    add_filter('themeblvd_sidebar_layout', 'my_sidebar_layout');
    ```

More Info: [Customizing Sidebar Layouts](http://dev.themeblvd.com/tutorial/sidebar-layouts/)

  How can I change the URL slug of Portfolio and Portfolio Tag archives?

function my_portfolio_tax_args( $args ) {
 $args[‘rewrite’] = array(‘slug’ => ‘my-
slug’); return $args; } add_filter(‘themeblvd_portfolio_tax_args’, ‘my_portfolio_tax_args’);

    ```
    function my_portfolio_tag_tax_args( $args ) {
        $args['rewrite'] = array('slug' => 'my-other-slug');
        return $args;
    }
    add_filter('themeblvd_portfolio_tag_tax_args', 'my_portfolio_tag_tax_args');
    ```

Note: Remember to flush your re-write rules! In other words, after you make this
change, go to _Settings > Permalinks_ in your WordPress admin, and re-save the page.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Portfolios」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Jason ](https://profiles.wordpress.org/themeblvd/)

[帮助将「Portfolios」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/portfolios)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/portfolios/)，查看[SVN仓库](https://plugins.svn.wordpress.org/portfolios/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/portfolios/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/portfolios/)。

## 更新日志

#### 1.1.6 – 01/20/2019

 * Allow portfolio taxonomies to be available through REST API and applied with 
   Gutenberg.

#### 1.1.5 – 09/07/2018

 * Allow portfolio items to be available through REST API and editable with Gutenberg.

#### 1.1.4 – 09/11/2016

 * Apply archive post display option to portfolio item archives, opposed to just
   portfolio and portfolio tag taxonomy archives.

#### 1.1.3 – 02/10/2015

 * Changed default value for “Portfolio Info Boxes” option.
 * Added Banner functionality to portfolio items (for framework 2.5+ themes).

#### 1.1.2 – 12/16/2014

 * Fixed filters applied to registering the taxonomies.
 * Added option for sidebar layout on portfolio archives (for framework 2.5+ themes).
 * Added more code examples to [FAQ](https://wordpress.org/plugins/portfolios/faq/)
   on using these filters.

#### 1.1.1 – 12/15/2014

 * Fixed Theme Blvd integration hook, from last update.
 * Fixed post meta integration (for framework 2.4 themes).

#### 1.1.0 – 12/13/2014

 * List associated portfolios at the bottom of the portfolio item post (for framework
   2.5+ themes).
 * Added portfolio archive options at _Appearance > Theme Options > Content > Portfolios_(
   for framework 2.5+ themes).
 * Fixes for Layout Builder 2.0+ integration.
 * Added support for filtering with Post Grid, Post List, and Post Showcase elements
   of Layout Builder 2.0+ (for framework 2.5+ themes).
 * GlotPress compatibility (for 2015 wordpress.org release).

#### 1.0.1 – 07/21/2014

 * Fixed PHP warning on Portfolio Items breadcrumb trail when no portfolio is selected.

#### 1.0.0 – 08/01/2013

 * This is the first release.

## 额外信息

 *  版本 **1.1.6**
 *  最后更新：**7 年前**
 *  活跃安装数量 **700+**
 *  已测试的最高版本为 **5.0.25**
 *  语言
 * [English (US)](https://wordpress.org/plugins/portfolios/)
 * 标签
 * [bundle](https://cn.wordpress.org/plugins/tags/bundle/)[Jason Bobich](https://cn.wordpress.org/plugins/tags/jason-bobich/)
   [portfolios](https://cn.wordpress.org/plugins/tags/portfolios/)[Theme Blvd](https://cn.wordpress.org/plugins/tags/theme-blvd/)
   [themeblvd](https://cn.wordpress.org/plugins/tags/themeblvd/)
 *  [高级视图](https://cn.wordpress.org/plugins/portfolios/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  2 条 5 星评价     ](https://wordpress.org/support/plugin/portfolios/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/portfolios/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/portfolios/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/portfolios/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/portfolios/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/portfolios/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/portfolios/reviews/)

## 贡献者

 *   [ Jason ](https://profiles.wordpress.org/themeblvd/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/portfolios/)