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

Portfolio Post Type

描述

This plugin registers a custom post type for portfolio items. It also registers separate portfolio taxonomies for tags and categories. If featured images are selected, they will be displayed in the column view.

This plugin doesn’t change how portfolio items are displayed in your theme. You’ll need to add templates for archive-portfolio.php and single-portfolio.php if you want to customize the display of portfolio items.

安装

Just install and activate.

常见问题

How can I display portfolio items differently than regular posts?

You will need to get your hands dirty with a little code and create a archive-portfolio.php template (for displaying multiple items) and a single-portfolio.php (for displaying the single item).

Why did you make this?

To allow users of Portfolio Press to more easily migrate to a new theme. And hopefully, to save some work for other folks trying to set a portfolio.

Is this code on GitHub?

Of course: https://github.com/devinsays/portfolio-post-type

评价

2019年1月18日
This is an ideal simple plugin if you want to display a portfolio. Very useful. Thanks...
2016年9月3日
I wanted a portfolio that was sortable into catgories, could display multiple images and was customizable. I tried a bunch of others and most were just awful. This one fits the bill perfectly. I am happy. Thanks!
阅读所有15条评价

贡献者及开发者

“Portfolio Post Type” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

“Portfolio Post Type”插件已被翻译至12种本地话语言。 感谢所有译者为本插件所做的贡献。

将“Portfolio Post Type”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.0.1

  • Update: Show portfolio icon in dashboard glance. Removed by mistake in v1.0.0, props @chesio for bug report.
  • Update: Fix for PHP 7.4.9 notices

1.0.0

  • Update: WordPress 5.0 Editor Support (props @simube)
  • Update: Use filter rather than action for dashboard glance (props @chesio)

0.9.3

  • Fix notice in dashboard when used with PHP7
  • Fix notice on specific screens when $screen variable not available

0.9.2

  • Update post type messages for WordPress 4.4

0.9.1

  • Updated translation file
  • Fixes issue with thumbnail support in some themes

0.9.0

  • Remove legacy support for icons
  • Gamajo_Registerable interface and classes

0.8.2

  • Updated .pot file for translations
  • Portuguese translation by Pedro Mendonça

0.8.1

  • Fix for developer notices on admin pages

0.8.0

  • Fix for taxonomy body classes on portfolio posts

0.7.0

  • Code refactor by @garyj
  • Update icons for WordPress 3.8

0.6.2

  • Fix for portfolio post type search in the dashboard. Props @pdme.
  • Minor code improvement for taxonomy body class filter. Props @garyj.

0.6.1

  • Taxonomy body classes when is_single(), fixes debug notices

0.6

  • Added @garyj as a contributor (Welcome!)
  • Updated to proper coding standards
  • Updated inline documentation
  • New filters for taxonomy arguments
  • Added body classes for custom taxonomy terms
  • Refactored code to be more DRY
  • Added not_found label to portfolio tag taxonomy
  • Updated translations.pot

0.5

  • Use show_admin_column for taxonomies (https://make.wordpress.org/core/2012/12/11/wordpress-3-5-admin-columns-for-custom-taxonomies/) rather than a custom function
  • Add author field custom post type
  • Allows $args to be filtered (https://github.com/devinsays/portfolio-post-type/issues/8)

0.4

  • Update to use classes
  • Update supports to include custom fields and excerpts

0.3

  • Added category to column view
  • Added portfolio count to “right now” dashboard widget (props @nickhamze)
  • Added contextual help on portfolio edit screen (props @nickhamze)
  • Now flushes rewrite rules on plugin activation

0.2

  • Fixes for portfolio tag label
  • Fixes for column display of portfolio items

0.1

  • Initial release