WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was wondering if it's really neccessary to keep the <div class="entry"> in the page.php file (or any other template for that matter). I typically use a blank HTML5 wordpress theme and it doesn't have any declarations within the CSS file for that class.

So I just wanted to get other opinions on it. Thanks!

share|improve this question
I guess it would depend on what CSS is declared for that class, and if you plan on using it for your theme. – Pat Mar 21 '13 at 14:56
As far as I remember correctly, entry and it's child classes were initiated for support of hAtom/hentry microformats. Nowadays schema.org seems to be the most important enriching data scheme. – Volker E. May 3 '15 at 20:34
up vote 2 down vote accepted

No specific markup is required in a theme. The only exception are themes published on wordpress.org, they have to follow the guidelines. And even there, <div class="entry"> is not required.

The only parts you have to use are these:

while ( have_posts() )
    print '<h2>' . get_the_title() . '</h2>';
share|improve this answer
Shaboom. Thanks! Yeah, I kinda figured, but I just wanted to make sure that I was keeping things consistent and semantic. But that puts it into perspective. Thanks again! – ultraloveninja Mar 21 '13 at 16:30
@ultraloveninja See my Mini Theme for a complete example. :) – toscho Mar 21 '13 at 16:32

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.