Print category description using the category slug outside the loop

Description

Replace the text within the html tag and change the category slug name. In this example, replace the word package.

PHP Source Code

                        
                          <?php
                    $category = get_category_by_slug( 'package' );
                    if ( $category ) {
                        echo  $category->description;
                    };
                    ?>                        
                        


Post Categories