WordPress.org

Ready to get started?Download WordPress

Forums

Integrating microformats(esp hreview) (4 posts)

  1. discipledaniel
    Member
    Posted 9 years ago #

    I'm starting to think through how best to integrate a couple more microformats with WordPress and wanted to get some feedback. I'm mostly focusing on hreview because I want to do more reviews on my blog, but I'm trying to keep the ideas open enough to be used for other things as well.
    Here is what my current thinking is:
    I started with modifying my template. I've pulled out the contents of the post loop from my index.php and put them into a seperate file called post.php and replace it with an include. I've also made a review.php which makes a properly formatted hreview entry. I am going to start adding a custom field to my review posts to mark if they are reviews(a type field and review as the content). Then I can add a check in my template if the post has that field, and if it does use the review.php instead of the post.php. I'll add some stuff to my css to format it properly and it should just work. I'm also looking at the structured blogging plugin to use their editing forms to make the creation nicer.
    Am I going about this the right way?

  2. Kafkaesqui

    Posted 9 years ago #

    "Am I going about this the right way?"

    Does it work? If so, then I'd say it's a right way.

  3. discipledaniel
    Member
    Posted 9 years ago #

    Yeah, I have it working, at least for the display. I'm still going to try to pull part of the structured blogging plugin into it. When I get things in a good shape I'll post a tutorial if anyone else is interested.

  4. discipledaniel
    Member
    Posted 9 years ago #

    Hmmm... it works fine for the main page, but I neglected the feeds and single page. Maybe I should rethink my options. Anyone have any ideas?

Topic Closed

This topic has been closed to new replies.

About this Topic