By adding the JSON:
The structure of a component is defined with JSON.
WordPress use a naming principle of templates through a PHP comment placed at the beginning of file. We grafts to this principle by adding the interpretation of JSON.
JSON need to be formed by a line by item and this following attributes:
- type : title, editor, link, image, id, number
- name : This is the name that will be displayed in Administration
- slug : the slug is used to target the data in the extraction
With this interpretation JSON, we can multiply the elements: