How to withdraw opredelennye headings on the id?

How to display specific heading on the page by id?
April 19th 20 at 12:29
1 answer
April 19th 20 at 12:31
Solution
$cats = get_categories( array( 'include' => array( 3, 4, 6 ) ) );

if( $cats ) {
 foreach( $cats as $cat ) {
 echo $cat->name;
}
}
thank you very much - deven_Balistreri23 commented on April 19th 20 at 12:34

Find more questions by tags WordPress