-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.php
50 lines (44 loc) · 959 Bytes
/
functions.php
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
47
48
49
50
<?php
/*
register_sidebar(array(
'name' => 'Newsletter',
'id' => 'newsletter',
'description' => 'Widgets in this area will be shown in the sidebar.',
'before_title' => '<h2>',
'after_title' => '</h2>'
));
*/
/*
add_action( 'init', 'create_post_type' );
function create_post_type() {
register_post_type( 'photos',
array(
'labels' => array(
'name' => __( 'Photos' ),
'singular_name' => __( 'Photo' )
),
'public' => true,
'has_archive' => true,
'rewrite' => array('slug' => 'photos'),
'supports' => array('title', 'editor')
)
);
register_post_type( 'poems',
array(
'labels' => array(
'name' => __( 'Poems' ),
'singular_name' => __( 'Poem' )
),
'public' => true,
'has_archive' => true,
'rewrite' => array('slug' => 'poems'),
'supports' => array('title', 'editor')
)
);
}
*/
/*
if ( function_exists( 'add_theme_support' ) ) {
add_theme_support( 'post-thumbnails', array( 'photos' ));
}
*/