Forums

Different post type, different markup (3 posts)

  1. lolz
    Member
    Posted 2 years ago #

    Is it possible to have different HTML markups for different types of post? For example, aside from the normal blog post, I'll have a post with just a photo in it, a post for poems and so forth. Is there anyway I can assign different markups for these different posts?

  2. MichaelH
    Volunteer
    Posted 2 years ago #

  3. lolz
    Member
    Posted 2 years ago #

    Not exactly what I'm looking for, it basically just changes the style by applying a class onto a post. I'm developing my theme in html 5.

    A normal blog post would look like:

    <article>
      ...
    </article>
    

    A post with just image would look like:

    <figure>
    ...
    </figure>
    

    A post for poems would be:

    blockquote
    ...
    /blockquote
    

    And so on... Any idea how?

Topic Closed

This topic has been closed to new replies.

About this Topic