Hi
To display the crew, make sure you are using the crew page template.
Then the information will be shown above the page content. That is what I meant with “at the top”.
To expand the number of profiles, you need to override the maximum number of profiles
both in the page template itself and in the file that has the option where you select the profiles.
This can be a bit technical if you have not worked with WordPress files before.
The changes needs to be done in a child theme, otherwise, the change will be reset every time the Deejay theme is updated.
In your child theme, create a folder called templates.
Copy crew.php from Deejay into this folder.
Open crew.php. Find line number 28:
for ( $i = 1; $i < 9; $i++ ) {
Change 9 into your new number.
Changing the setting can be done in more than one way.
Because of the way Deejay is built, we are going to remove the control, and replace it.
In your child theme’s functions.php
file, add the following code.
Remember to replace the number 9 with your new number, and theme_name with your theme name:
/**
* Remove parent theme customizer options:
*/
function theme_name_customize_register( $wp_customize ) {
$wp_customize->remove_control( 'deejay_crew_member' );
// Create a list of users / crew members.
$users = get_users();
$output = array();
foreach ( (array) $users as $user ) {
$output[ $user->ID ] = $user->display_name;
}
for ( $i = 1; $i < 9; $i++ ) {
$wp_customize->add_setting(
'deejay_crew_member' . $i,
array(
'sanitize_callback' => 'deejay_sanitize_select',
)
);
$wp_customize->add_control(
'deejay_crew_member' . $i,
array(
'type' => 'select',
'label' => __( 'Crew member #', 'deejay' ) . $i,
'section' => 'deejay_crew',
'choices' => $output,
)
);
}
}
add_action( 'customize_register', 'theme_name_customize_register', 1000 );