How to Style Individual Wordpress Posts in Seconds


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. Body Class
  2.  
  3. <body <?php body_class(); ?>>
  4.  
  5.  
  6.  
  7. Post Class
  8.  
  9. <div <?php post_class() ?> id="post-<?php the_ID(); ?>

URL: http://themethesis.com/tutorials/styling-specific-wordpress-posts/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.