get_cat_name example

</form> <?php if ( 'category' === $taxonomy ) : ?> <div class="form-wrap edit-term-notes"> <p> <?php     printf(
        /* translators: %s: Default category. */
        __( 'Deleting a category does not delete the posts in that category. Instead, posts that were only assigned to the deleted category are set to the default category %s. The default category cannot be deleted.' ),
        /** This filter is documented in wp-includes/category-template.php */
        '<strong>' . apply_filters( 'the_category', get_cat_name( get_option( 'default_category' ) ), '', '' ) . '</strong>'
    );
    ?> </p> <?php if ( current_user_can( 'import' ) ) : ?> <p> <?php         printf(
            /* translators: %s: URL to Categories to Tags Converter tool. */
            __( 'Categories can be selectively converted to tags using the <a href="%s">category to tag converter</a>.' ),
            esc_url( $import_link )
        );
        

function get_catname( $cat_id ) {
    _deprecated_function( __FUNCTION__, '2.8.0', 'get_cat_name()' );
    return get_cat_name( $cat_id );
}

/** * Retrieve category children list separated before and after the term IDs. * * @since 1.2.0 * @deprecated 2.8.0 Use get_term_children() * @see get_term_children() * * @param int $id Category ID to retrieve children. * @param string $before Optional. Prepend before category term ID. Default '/'. * @param string $after Optional. Append after category term ID. Default empty string. * @param array $visited Optional. Category Term IDs that have already been added. * Default empty array. * @return string */
        $allow_comments = comments_open( $page->ID ) ? 1 : 0;
        $allow_pings    = pings_open( $page->ID ) ? 1 : 0;

        // Format page date.         $page_date     = $this->_convert_date( $page->post_date );
        $page_date_gmt = $this->_convert_date_gmt( $page->post_date_gmt, $page->post_date );

        // Pull the categories info together.         $categories = array();
        if ( is_object_in_taxonomy( 'page', 'category' ) ) {
            foreach ( wp_get_post_categories( $page->ID ) as $cat_id ) {
                $categories[] = get_cat_name( $cat_id );
            }
        }

        // Get the author info.         $author = get_userdata( $page->post_author );

        $page_template = get_page_template_slug( $page->ID );
        if ( empty( $page_template ) ) {
            $page_template = 'default';
        }

        
Home | Imprint | This part of the site doesn't use cookies.