what the [f] is a hentry?

  1. kato


    Seriously, does anybody know?

    Every WordPress site I've worked on has all its main content placed in a div with a class of "hentry." Yet no one remembers putting it in there. We have no idea who this hentry fellow is, and I cannot find any documentation in various wordpress books online.

    Can we get an explanation for this?? It's irritating me.


    Posted: 6 years ago #
  2. jameyer

    I typed WordPress hentry in google, first page returned - http://codex.wordpress.org/Function_Reference/post_class and defines it as hAtom microformat pages. That definition doesn't make a lot of sense to me, but Wikipedia makes it sound like a way to convert content so it can be sent as an Atom Feed. http://en.wikipedia.org/wiki/HAtom

    Hope this helps a little. Maybe someone with more knowledge on feeds can give a better answer.

    Posted: 6 years ago #
  3. Ipstenu (Mika Epstein)

    That is what it is :) It's a way we can style your site so it shows up better on RSS (aka Atom) feeds.

    Posted: 6 years ago #
  4. craigwharris

    Does anyone know?....
    When does it make sense to modify the hentry class? Or should it be left alone?

    (I've googled "hentry" also and I haven't found an explanation except for Ipstenu above, and he makes it sound like hentry is only relevant to making RSS feed better)

    Posted: 5 years ago #
  5. Ipstenu (Mika Epstein)

    It makes sense to modify when you want to style your site :) You can leave it alone, and use other classes and IDs.

    Posted: 5 years ago #
  6. craigwharris

    Thanks Ipstenu,...at least I know it does make sense to modify hentry for certain customizations.

    The issue came up because I'm having trouble making a list of picture posts display as a 2-dimensional array ( rather than a vertical list), and someone suggested I add float:left to hentry. It didn't work BTW. I guess as I learn more about css and use firebug, I'll be able to figure out what I can do with hentry.

    Posted: 5 years ago #
  7. MESmith

    I found this answer when I googled hentry. Now that I am here would someone please tell me how I can get rid of the page name on every page on my site starting with HOME. I am using twenty eleven and have created a child theme. I am not very experienced in css or php, but tell me how and I can find where to change the coding. All of my pages are static pages and I do not want any blogging or posting my visitors.

    That also brings up another question. What will happen if I remove all references to blog in all of the coding?

    Thank you very much for your help. I am having to rebuild my site and I don't have the coding that I used previously to make theme changes.

    Posted: 5 years ago #
  8. MESmith

    Drats! I forgot to check the notify me box.

    Posted: 5 years ago #
  9. Ipstenu (Mika Epstein)

    MESmith - This is a question for the SUPPORT forums, not the ideas :)

    Posted: 4 years ago #
  10. coakenfold

    jameyer is correct. The hentry class belongs to the hAtom microformat specification.

    What is a microformat?
    "microformats are extensions to HTML for marking up people, organizations, events, locations, blog posts, products, reviews, resumes, recipes etc. Sites use microformats to publish a standard API that is consumed and used by search engines, browsers, and other tools."
    - http://microformats.org/wiki/Main_Page

    What is hAtom?
    "hAtom is a microformat for identifying semantic information in weblog posts and practically any other place Atom may be used, such as news articles. hAtom content is easily added to most blogs by simple modifications to the blog's template definitions."
    - http://microformats.org/wiki/hatom

    However it looks like hentry/hAtom are part of Microformat v1. Microformat v2 has updated hentry to h-entry. Maybe it needs to be updated in the WordPress lib?

    More about h-entry:
    "h-entry is a simple, open format for episodic or datestamped content on the web. h-entry is often used with content intended to be syndicated, e.g. blog posts. h-entry is one of several open microformat draft standards suitable for embedding data in HTML/HTML5."
    - http://microformats.org/wiki/h-entry

    And finally some info on hentry:

    Posted: 4 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.

  • Rating

    4 Votes
  • Status

    This is not a core suggestion