• I added a new section to the registration without success. Is this the wrong way to add additional support for another page? The page name is Home and Home has been set as the frontpage.

    // If the home term doesn’t exist, create it
    $home_term = get_term_by( ‘slug’, ‘home’, $taxonomy );

    if ( ! $home_term ) {

    wp_insert_term( __( ‘Home’, ‘sullivan-compatibility’ ), $taxonomy, array(
    ‘description’ => __( ‘Slides to display on the Home page.’, ‘sullivan-compatibility’ ),
    ‘slug’ => ‘home’,
    ) );

    // If it does exist, but its name doesn’t match the translation, update it
    } elseif ( $home_term && $home_term->name != __( ‘Home’, ‘sullivan-compatibility’ ) ) {

    wp_update_term( $home_term->term_id, $taxonomy, array(
    ‘name’ => __( ‘Home’, ‘sullivan-compatibility’ )
    ) );

    }

  • The topic ‘Adding Page to Slider’ is closed to new replies.