• I’m wondering if there’s a way to Customize the layout for my post, ex. If I want to make two small posts that put one beside the other combined measure the same as a normal post, only in those especific posts, and later on my “blog” I want to create a different Mod for another tipe of post. Can it be done?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter jcmoreno

    (@jcmoreno)

    here’s the link to an example of what im thinking… it’s pretty simple, but I’m wondering if it is simple or do-able with wp

    https://www.flickr.com/photos/28071039@N05/2656532604/

    Cool chihuahua, jcmoreno!

    I think what you’re trying to do is totally possible. It might just take a bit of template coding and some crafty CSS.

    In your mockup, I’m assuming that we’re looking at a ‘home’ page where you’re actually showing eight different posts, but some of them are smaller.

    1. Would these ‘smaller’ posts be members of a certain category or tag?
    2. Would the smaller posts have a link to ‘more info’ to see the full post, or would you be trying to reign in the amount of copy so it fits in one neat paragraph?
    Thread Starter jcmoreno

    (@jcmoreno)

    thx. I will tell my mother that you think her chihuahua is cool ?? … jejeje…

    1. well, my atempt is that in the left column only displays posts from an especific catergory, and in the right column would show post from again another category but it would change dynamically with the buttons that I want to put on top of that column.
    That said, maybe it would be like having multiple different loops, I found a script online with the instructions on the “how-to”, but, the thing that I really need is how to customize the layout of the posts, it would be great if the layout can be choosen when the post is being typed.

    2. yes.. the smaller posts would have a “more info” link to the complete post, and if you put some attention to some posts, they have some sort of links under the lead of the post, well, I’m thinking that they would be something like relative links, of course… relative to the post they are underneath.

    Sounds like you may end up with a few different loops and possibly some Conditional Tags.

    You could, for example, have in one of your loops a Conditional element in your loop that says something like:

    if the category equals ‘coffee’
    apply class ‘slim’ to the containing element
    otherwise, apply class ‘fat’

    You’d probably need to mess around with it to see where all the snags might be. One possible problem would be that if you need two slim elements together, you’ll have to work out the best way to ensure that this happens.

    This could require multiple loops for the page, or just some fancy conditions in your loops.

    Sounds like you have an idea how to do this.

    Regarding the layout, I’d definitely use a CSS layout and create two columns, one for the main content (left) and another for the subcontent (right). Then, within the right subcontent area, I’d mess with your loop code and use floats and clears to make it fall into place.

    When you’ll have two slim elements right next to each other, you can either wrap them both in a div, or creatively use padding to create the top and bottom borders.

    Make sense?

    Thread Starter jcmoreno

    (@jcmoreno)

    Yeap, it makes sense, I will give it a try and if I have some sort of trouble, I’ll scream for help… and it will be very probable, because I’m no pro programmer, not even a junior kind, I’m a Flash animator who is trying to do something different. jejeje…

    hello,
    i′m sort of having the same problem but a bit simpler, i want all my post to apear as your post number 4 on your flickr image, but have no idea how to make it, jcmoreno, have you resolved it yet??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Customizing Layout for Post’ is closed to new replies.