外掛說明
Easy Post Types and Fields makes it quick and easy to add custom post types, custom fields, and taxonomies to your WordPress website.
There are lots of reasons why WordPress site owners need to add extra content types to the CMS:
-
Create dedicated areas for each type of content within the WordPress admin (these are called ‘custom post types’). For example, if you’re adding ‘Resources’ to your site then it’s best to create a ‘Resources’ custom post type and manage the resources separately from your pages and posts.
-
Add extra fields (called ‘custom fields’) to your pages, posts, or any custom post type. These are useful for storing and displaying information in a structured way. For example, you might add a ‘Modified Date’ field to your Resources post type.
-
Create extra ways of categorizing and organizing your website content (these are called ‘custom taxonomies’). These are like categories and tags in WordPress, but the difference is that you can have as many as you like – for any post type. For example, you might create an ‘Industries’ taxonomy in order to group your Resources by industry.
Developed by leading UK-based plugin company Barn2, Easy Post Types and Fields is intentionally simpler and easier to use than other plugins. It has all the essential features that you need to create custom post types, custom fields, and custom taxonomies – without any unnecessary complexity.
How to add custom post types, fields, and taxonomies to WordPress
Simply create any type of content using a simple and intuitive wizard. You can create brand new custom post types, or add custom fields and taxonomies to existing post types. Either way, it’s incredibly straightforward.
Once you have created your custom post types, fields, and taxonomies, it’s easy to add the extra information to the WordPress CMS. Each custom post type has its own section on the left of the WordPress admin. Your custom fields and taxonomies appear on the ‘Add/Edit’ screen for each post.
View the full plugin documentation in our knowledge base.
Can I display the custom content on the front end of my website?
By default, your theme will display your custom post types using the same templates as the blog. This will list custom posts in the same way as blog posts, and won’t include your custom fields or taxonomies. This may not be the best way to present your custom content, so we recommend displaying it in a table using the Posts Table Pro plugin.
Posts Table Pro is a dynamic WordPress table plugin that lists any type of content from your website in a searchable table. As well as displaying any custom post type, you can choose which columns of information to show in the table – including your custom fields and custom taxonomies. See below for screenshots.
Your users will view the information in a table on the front end of your site. They can use the search box, sortable columns, and filter dropdowns to find exactly what they’re looking for.
This is how it displays the information from Easy Post Types and Fields:
-
Create a table listing any or all of the posts from your custom post type. For example, you can list all the custom posts, or list posts with a specific ID, custom field value, custom taxonomy term, published date, etc.
-
Display each custom field as a separate column in the table. Users can sort the table by custom field.
-
Display each custom taxonomy as a separate column in the table. Users can sort by taxonomy terms, and also click on a term to filter the table. In addition, you can add each taxonomy as a filter dropdown above the table. That way, users can instantly find custom posts by taxonomy.
This free WordPress custom post type plugin includes:
-
Custom post types:
-
Create an unlimited number of custom post types. Each custom post type has its own section in the WordPress admin, so you can manage your custom content separately from other WordPress post types.
-
Extend existing post types.
-
-
Custom fields:
-
Add custom fields to any WordPress post type – either the post types that are built into WordPress itself (pages, posts, media attachments, etc.), content types created using Easy Post Types and Fields, or any other custom post type (e.g. post types created using other plugins such as Document Library Pro and WooCommerce Product Table.
-
2 custom field types: Plain text or WYSIWYG (Visual Editor).
-
-
Custom taxonomies:
-
Add custom taxonomies to any post type.
-
Choose between hierarchical taxonomies (similar to WordPress categories) or non-hierarchical taxonomies (similar to WordPress tags).
-
Each taxonomy is unique to a specific post type, so you can manage the taxonomy terms separately from other categories and taxonomies.
-
What doesn’t it include?
Easy Post Types and Fields includes the features that the majority of WordPress site owners use when they create custom post types, custom fields, and taxonomies. It intentionally does not include more advanced features that only a small proportion of users need, such as:
-
Additional custom field types such as date picker, checkbox, and color picker fields (remember, you can add dates, numbers, images, etc. to a Visual Editor custom field in Easy Post Types and Fields).
-
Privacy options to restrict which user roles can see each field.
-
Relationship and repeater fields.
-
Advanced Content Types (ACTs) that get their own database tables.
If you need these features then we recommend using a different custom post type plugin (e.g. Pods, Custom Post Type UI, or ACF). There are some excellent options available if you are happy with the added complexity.
Restrict access to custom post types and make them private
Some people want to control who can access some or all of their custom posts. You can do this by using Easy Post Types and Fields with our other plugin, WordPress Password Protected Categories. This adds privacy options to your hierarchical custom taxonomies.
Simply restrict each one to specific logged-in users or user roles, or to anyone with the password. All the posts/custom posts in that taxonomy will then be private and hidden from view.
螢幕擷圖
安裝方式
- Upload the plugin files to the
/wp-content/plugins/easy-post-types-fields
directory, or install the plugin through the WordPress plugins screen directly. - Activate the plugin through the ‘Plugins’ screen in WordPress.
- Follow the setup wizard or go to EPT > Settings and configure your custom post types, fields, and taxonomies.
- Create your new posts.
- Use your favorite plugins to show your new post types, fields, and taxonomies on your website.
常見問題集
-
Where can I get support with using the plugin?
-
You can get support from the WordPress experts at Barn2 plugins. To request support, either use the support forum in the ‘Support’ tab above or use the dedicated support request form.
-
I’m a developer. Can I display custom fields and taxonomies programmatically?
-
Absolutely. While Easy Post Types and Fields is aimed at beginners who need a simpler way to add custom content, it is also perfect for developers wanting to save time in creating a CPT. Please see the developer documentation for details on the available hooks and filters that you can use to display the custom content in template files.
-
Do the custom fields support HTML and shortcodes?
-
Yes, you can add HTML and shortcodes into either the plain text and Visual Editor custom fields.
使用者評論
參與者及開發者
變更記錄
1.1.11
Release date 25 November 2024
- Dev: Updated the internal libraries
- Dev: Tested up to WordPress 6.7.1
See changelog.txt for more details.