• Hello everyone,

    I’m interested in writing a plugin which displays posts which are in a certain category (say, microposts) to be displayed very minimally with no metadata. For example, if a regular post is usually displayed with the date, the author, categories, etc, I want posts of these kinds to be displaying *only* the data. E.g:

    Regular post:
    9 Milton: A Robust Global Illumination Rendering System
    Another student and I are …
    January 7, 2009 | In graphics, programming | No Comments

    Micropost:
    # this is a super simple micropost, no metadata!

    I haven’t seen a plugin which integrates small posts like these into the regular blog (only on the sidebar, which I don’t really want.)

    I’m a very competent programmer, but I haven’t worked with wordpress before. Can anyone help me come up with a plan of attack? Should I be putting an if statement in the main loop which checks to see what category a post is and then formatting it depending on that? That seems kind of hackish, I was hoping there would be a better way.

    Thanks,
    Matt

Viewing 1 replies (of 1 total)
  • Michael Torbert

    (@hallsofmontezuma)

    WordPress Virtuoso

    Just edit your theme and wrap the section with the unwanted data in the if statement you mentioned. That’s not hackish, that’s just how you manipulate your theme.

    <Loop>
    
    *PostContent
    
    if(category==x){
        *date
        *tags
        *category
        *comments
    }
    
    </Loop>
Viewing 1 replies (of 1 total)
  • The topic ‘microposting?’ is closed to new replies.