Skip to content
This repository was archived by the owner on Nov 4, 2022. It is now read-only.

Commit fced2a4

Browse files
committed
Update:
- Add post type generator and taxonomy generator - Reorder menu
1 parent 7d3693b commit fced2a4

File tree

4 files changed

+103
-1
lines changed

4 files changed

+103
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ _site
22
.sass-cache
33
.asset-cache
44
.jekyll-metadata
5+
.jekyll-cache
56
Gemfile.lock

_data/docs.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@
44
url: /
55
- /installation/
66
- /quick-start/
7-
- title: Basics
7+
- title: Online Tools
88
items:
9+
- /post-type-generator/
10+
- /taxonomy-generator/
911
- /online-generator/
12+
- title: Basics
13+
items:
1014
- /creating-meta-boxes/
1115
- /field-settings/
1216
- /displaying-fields/

_docs/post-type-generator.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
---
2+
title: Post Type Generator
3+
---
4+
5+
[Post Type Generator](https://metabox.io/post-type-generator/) is a free online tool to help you create and set up custom post types easily with a simple and intuitive user interface. With this tool, you can copy and paste PHP code for custom post types in a few clicks.
6+
7+
One notable feature of this tool is that it can be used independently from Meta Box core plugin. Therefore, you don’t need to install the Meta Box core plugin to use Post Type Generator.
8+
9+
10+
## Set up a New Custom Post Type
11+
12+
### Set up General Options
13+
14+
After opening this tool [here](https://metabox.io/post-type-generator/), fill in the basic information for your new custom post type like **Plural name, Singular name** and **Slug** in the **General** tab. The **Function** name and **Text domain name** already have default values, but you can change them as well.
15+
16+
![Set up General information of your custom post type created with Meta Box Post Type Generator tool](https://i.imgur.com/WZsxlhE.png )
17+
18+
### Set up Labels
19+
20+
The **Labels** tab lets you enter the labels of your post types that will show up in the Admin Dashboard.
21+
22+
![Set up labels of your custom post type created with Meta Box Post Type Generator tool](https://i.imgur.com/C3PtAc3.png)
23+
24+
### Set up Advanced Options
25+
26+
In the **Advanced** tab, the description of each field will help you set up some advanced options for your post types display.
27+
28+
![Set up advance information of your custom post type created with Meta Box Post Type Generator tool](https://i.imgur.com/JcmKDgq.png)
29+
30+
Pay attention to some fields:
31+
32+
- **Publicly queryable?** If you tick the box, it can query to take the data of your post type so that the content of it can be displayed on the front end.
33+
- Similarly, put a tick to the **Show UI?** and **Show in nav menus?** if you want to show your post type UI and show your post type in nav menus in the Dashboard. It’s recommended to enable them for easy management.
34+
- **Hierarchical?** If you want your post type to have a parent post type and sub post type in order to sort and manage it conveniently, enable this.
35+
36+
For more details about all the fields in this tab, please read [this instruction](https://developer.wordpress.org/reference/functions/register_post_type/) from WordPress.
37+
38+
### Set up Supports and Taxonomies
39+
40+
In the **Supports** tabs, you can choose which elements to display in the WordPress Editor when editing your custom post types.
41+
42+
![Set up the supported components of your custom post type created with Meta Box Post Type Generator tool](https://i.imgur.com/qRslf7w.png)
43+
44+
In the **Taxonomies** tab, the two default WordPress taxonomies are listed here. Choose which kind of taxonomy to be included in your post type.
45+
46+
![Set up taxonomies of your custom post type created with Meta Box Post Type Generator tool](https://i.imgur.com/S5sBSfa.png )
47+
48+
## Generate Code and Insert It to the Functions.php File
49+
50+
When you complete all the steps above, click the **Generate Code** button. Just wait a moment and the code will show up right under the button.
51+
52+
![Meta Box Post Type Generator tool generates code to create your custom post type ](https://i.imgur.com/RIrSc7I.png)
53+
54+
Copy the code and insert it to the `functions.php` file and it's all done.

_docs/taxonomy-generator.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
title: Taxonomy Generator
3+
---
4+
5+
[Taxonomy Generator](https://metabox.io/taxonomy-generator/) is a free online tool to create custom taxonomy easily and quickly. You can use it without installing Meta Box core plugin.
6+
7+
## Set up a New Custom Post Taxonomy
8+
9+
### Set up General Options
10+
11+
Open this tool [here](https://metabox.io/taxonomy-generator/) and put the **Plural Name, Singular Name** and **Slug** of your custom taxonomy in the **General** tab. The **Function name** and **Text domain name** already have default values, but you can change them as well.
12+
13+
![Set up general information of your custom taxonomy created with Meta Box Taxonomy Generator tool](https://i.imgur.com/eJdGyjQ.png)
14+
15+
### Set up Labels
16+
17+
The **Labels** tab lets you enter the labels of your custom taxonomy that will show up in the Admin Dashboard.
18+
19+
![Set up labels of your custom taxonomy created with Meta Box Taxonomy Generator tool](https://i.imgur.com/uUKLw6w.png)
20+
21+
### Set up Advanced Options
22+
23+
In the **Advanced tab**, just read the description of each field. They will help you set up some advanced options for your custom taxonomy.
24+
25+
Remember that if you tick the box **Public?**, it can query to take the data of your custom taxonomy so that the content of it can be displayed on the front end.
26+
27+
![Set up advanced information of your custom taxonomy created with Meta Box Taxonomy Generator tool](https://i.imgur.com/LXB8eLN.png)
28+
29+
For more detail about all the fields in this tab, please read [this instruction](https://developer.wordpress.org/reference/functions/register_taxonomy/) from WordPress.
30+
31+
### Set up Post Types Tab
32+
33+
The Post Types tab lists the two default post types **Post** and **Page** here. Just decide whether your custom taxonomy will display in your posts or pages.
34+
35+
![In Taxonomy Generator, set up the post type where your custom taxonomy will display](https://i.imgur.com/gfBFDWz.png)
36+
37+
## Generate Code and Insert It to the Functions.php File
38+
39+
When you complete all steps above, click the **Generate Code** button. Just wait a moment and the code will show up right under the button.
40+
41+
![Meta Box Taxonomy Generator generates code](https://i.imgur.com/MudzzYG.png)
42+
43+
Copy the code and insert it to the `functions.php` file and it's all done.

0 commit comments

Comments
 (0)