Jake Vanderwerf
2026-02-10 8c4279f9bbe7ec4681412865b999f2f4457d80ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
// /taxonomies/section.php
function altr_section():array
{
    return [
        'singular'     => 'Section',
        'plural'       => 'Sections',
        'icon'         => 'folder',
        'show_feed'    => false,
        'show_directory'=> true,
        'rewrite'      => [
            'slug'         => 'faq',
            'with_front'   => false,
            'hierarchical' => true,
        ],
        'hierarchical' => true,
        'for_content'  => [
            'faq',
        ],
        'seo'   => [
            'meta'  => [
                'title'         => '{{term_name}} | FAQ',
                'description'   => '{{description}}'
            ],
            'schema' => [
                'type'      => 'FAQPage',
                'name'          => '{{term_name}} | FAQ',
                'description'   => '{{term_description}}',
            ],
            'archive' => [
                'type'          => 'FAQPage',
                'name'          => '{{term_name}} - Frequently Asked Questions',
                'description'   => '{{description}}',
            ]
        ],
        'fields'       => [
            'term_name' => [
                'label'     => 'Name',
                'type'      => 'text',
                'subtype'   => 'number',
                'quickEdit' => true,
            ],
            'common'    => [ 'wiki' ]
        ]
    ];
}