官术网_书友最值得收藏!

Adding more fields

Moving back to our content type, let's incorporate the taxonomy vocabulary we have just created.

We need to go to the Manage fields tab inside the Post content type. Once here, we need to add our new field. Let's do that now. Click on + Add field; once again, this will redirect us to a field settings page. For this field, we need to select Reference | Taxonomy term. So now, we need to fill in the Label; let's call this Post category. Once this is done, click on Save field settings; now we can fill in our settings for this field.

Leave everything as it is, but under Reference method, there is a checkbox labelled Create referenced entities if they don't already exist, which basically allows any term that's typed but doesn't already exist to be created. Pretty cool, eh?

Directly beneath that, we have checkboxes for our various vocabularies, as we can see here in Fig 1.11:

Fig 1.11

Now that we have done this, let's save our field and go to create our first post!

主站蜘蛛池模板: 巨野县| 蕲春县| 台安县| 峡江县| 韶关市| 周口市| 新民市| 武隆县| 乌拉特前旗| 于都县| 呼图壁县| 海南省| 霍邱县| 介休市| 玉林市| 酉阳| 石林| 马龙县| 稻城县| 新巴尔虎左旗| 乌鲁木齐市| 玉山县| 黄骅市| 岳西县| 庆城县| 兖州市| 阿鲁科尔沁旗| 花莲县| 舞钢市| 张家口市| 卫辉市| 丹巴县| 贺州市| 甘肃省| 枣阳市| 延边| 五寨县| 永定县| 新安县| 扬州市| 龙南县|