Hi crunchthalomew,
First of all, if you already have some speakers, copy their, because post type will be changed and you'll have no access to these speakers.
1. Open Fest/gavern/helpers/helpers.features and replace function gavern_create_post_type with this one:
- Code: Select all
function gavern_create_post_type() {
register_post_type( 'gavern_artists',
array(
'labels' => array(
'name' => __( 'Artists', GKTPLNAME ),
'singular_name' => __( 'Artist', GKTPLNAME )
),
'taxonomies' => array('category'),
'menu_position' => 5,
'public' => true,
'rewrite' => array('slug' => 'artist'),
'has_archive' => true,
'supports' => array('title', 'editor', 'thumbnail', 'custom-fields', 'comments')
)
);
}
2. Change Fest/content-speaker.php filename to content-artist.php
3. Change Fest/category-speakers filename to category-artists.php
4. Open category-artists.php file and change this line
- Code: Select all
$args = array( 'post_type' => 'gavern_speakers', 'posts_per_page' => 100 );
to
- Code: Select all
$args = array( 'post_type' => 'gavern_artists', 'posts_per_page' => 100 );
and
- Code: Select all
<?php get_template_part( 'content', 'speaker' ); ?>
change to
- Code: Select all
<?php get_template_part( 'content', 'artist' ); ?>
5. Change Fest/single-gavern_speakers filename to single-gavern_artists
6. Open single-gavern_artists and change
- Code: Select all
<?php get_template_part( 'content', 'speaker' ); ?>
to
- Code: Select all
<?php get_template_part( 'content', 'artist' ); ?>
,
7. Open Fest/gavern/widget.speakers.php file and change line 75 to
- Code: Select all
$gk_loop = new WP_Query( 'category_name=' . $category . '&post_type=gavern_artists');
,
8. Then change GK widget Title, create category "Artists", create new Artists, and that's all.
If you want to change only displayed name from "Speakers" to "Artists" (not custom post type), back to point 1 and paste this function:
- Code: Select all
function gavern_create_post_type() {
register_post_type( 'gavern_speakers',
array(
'labels' => array(
'name' => __( 'Artists', GKTPLNAME ),
'singular_name' => __( 'Artist', GKTPLNAME )
),
'taxonomies' => array('category'),
'menu_position' => 5,
'public' => true,
'rewrite' => array('slug' => 'speaker'),
'has_archive' => true,
'supports' => array('title', 'editor', 'thumbnail', 'custom-fields', 'comments')
)
);
}
then change Speakers category titile and description, GK Spekaers widget title and that's it.