Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

what is post_class()

/* we see in php code  */
<div id="post-<?php the_ID(); ?>" <?php post_class( 'class-name' ); ?>>

/*  we see in html code like this   */
<div id="post-4564" class="class-name post-4564 post type-post status-publish format-standard hentry category-news">
Source by developer.wordpress.org #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
5+4 =