Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

what is post_class()

/*    Use an array to add multiple classes in post_class() function:  */
<?php
$classes = array(
    'class1',
    'class2',
    'class3',
);
?>
 
<div id="post-<?php the_ID(); ?>" <?php post_class( $classes ); ?>>
Source by developer.wordpress.org #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
1+8 =