Grow your CSS skills. Land your dream job.

WordPress LOOP Question

  • # November 8, 2011 at 5:23 pm

    Hey guys, I’m working on this: http://www.how-do-i-find-peace.com/SIP/ to replace the current theme – decided to start from scratch.

    I want each entry to be contained in another one of those curved papers, like this: http://www.how-do-i-find-peace.com/SIP/SIP-WIP.jpg

    So here’s my question: In order to have each entry create another instance of #entryBoxContainer do I just wrap the entry #entryBoxContainer within the loop? Like this:


    < ?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>







    Finding Your Center In A Crazy World




    Inner Peace, Meditation, Englightenment, Human Oneness



    Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Duis ligula lorem, consequat eget, tristique nec, auctor quis, purus. Vivamus ut sem. Fusce aliquam nunc vitae purus. Aenean viverra malesuada libero. Fusce ac quam. Donec neque. Nunc venenatis enim nec quam. Cras faucibus, justo vel accumsan aliquam, tellus dui fringilla quam, in condimentum augue lorem non tellus. Pellentesque id arcu non sem placerat iaculis. Curabitur posuere, pede vitae lacinia accumsan, enim nibh elementum orci, ut volutpat eros sapien nec sapien. Suspendisse neque arcu, ultrices commodo, pellentesque sit amet, ultricies ut, ipsum. Mauris et eros eget erat dapibus mollis. Mauris laoreet posuere odio. Nam ipsum ligula, ullamcorper eu, fringilla at, lacinia ut, augue. Nullam nunc.


    Written by: Tanner Campbell


    Read More


    5 Comments | Leave a Comment













    < ?php endwhile; else: ?>

    < ?php _e('Sorry, no posts matched your criteria.'); ?>


    < ?php endif; ?>

    Please ignore the fact that this is all HTML/CSS right now and I have none of the WP hooks inserted.

    Thanks!
    Tanner

    # November 8, 2011 at 5:33 pm

    Exactly! Except it should be a class instead of an id because it’ll be used multiple times on the page.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".