WordPress plugin that adds support for Portfolio entries.
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 will need to add templates for archive-portfolio.php
and single-portfolio.php
if you want to customize the display of portfolio items.
- WordPress 3.8, tested up to 6.4.1
- Download the latest tagged archive (choose the "zip" option).
- Go to the Plugins -> Add New screen and click the Upload tab.
- Upload the zipped archive directly.
- Go to the Plugins screen and click Activate.
- Download the latest tagged archive (choose the "zip" option).
- Unzip the archive.
- Copy the folder to your
/wp-content/plugins/
directory. - Go to the Plugins screen and click Activate.
Check out the Codex for more information about installing plugins manually.
Using git, browse to your /wp-content/plugins/
directory and clone this repository:
git clone https://github.com/devinsays/portfolio-post-type.git
Then go to your Plugins screen and click Activate.
Since the custom post type and two taxonomies have filterable arguments, it's possible to amend the labels or other arguments via a plugin or a theme. For example, to change the label from Portfolio to Projects, you can do:
add_filter( 'portfolioposttype_args', 'prefix_change_portfolio_labels' );
/**
* Change post type labels and arguments for Portfolio Post Type plugin.
*
* @param array $args Existing arguments.
*
* @return array Amended arguments.
*/
function prefix_change_portfolio_labels( array $args ) {
$labels = array(
'name' => __( 'Projects', 'portfolioposttype' ),
'singular_name' => __( 'Project', 'portfolioposttype' ),
'add_new' => __( 'Add New Item', 'portfolioposttype' ),
'add_new_item' => __( 'Add New Project', 'portfolioposttype' ),
'edit_item' => __( 'Edit Project', 'portfolioposttype' ),
'new_item' => __( 'Add New Project', 'portfolioposttype' ),
'view_item' => __( 'View Item', 'portfolioposttype' ),
'search_items' => __( 'Search Projects', 'portfolioposttype' ),
'not_found' => __( 'No projects found', 'portfolioposttype' ),
'not_found_in_trash' => __( 'No projects found in trash', 'portfolioposttype' ),
);
$args['labels'] = $labels;
// Update project single permalink format, and archive slug as well.
$args['rewrite'] = array( 'slug' => 'project' );
$args['has_archive'] = true;
// Don't forget to visit Settings->Permalinks after changing these to flush the rewrite rules.
return $args;
}
You'd likely want to do something similar with the labels for portfolio tag and portfolio category taxonomies as well.
You will need to get your hands dirty with a little code and create an archive-portfolio.php
template (for displaying multiple items) and a single-portfolio.php
(for displaying the single item).
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 create a portfolio.
Yes, you can find it here: https://wordpress.org/plugins/portfolio-post-type/
Built by Devin Price and Gary Jones