Support » Fixing WordPress » Change php to list images in a row

  • Hello,

    I am rather new to WordPress. I need to change my boss’ Portfolio page to list all of the images in rows of four, rather than a single column.

    The Portfolio Page Template php is calling all of the posts with the portfolio category and displaying the associated Featured Image.

    Here is the code in question:

    			<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    					<li class="portfolioItem">
                        	<a href="<?php the_permalink() ?>"><?php the_post_thumbnail(); ?></a>
    			<?php endwhile; ?>

    This is the page I’m working on:

    Let me know if more information is needed.

    Thank you,


Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Andrew Nevins


    line 315 style.css, remove width: 100%;

    Moderator Andrew Nevins


    Then on line 297, remove width: 640px;

    Thank you, thank you, thank you, anevins! You are the man!

    That’s exactly what I needed. Now I just need to get all of the logo containers the same size, on one page (instead of spilling over to a second) and surrounded by a border (or two).

    Once again, thank you, I have an exciting weekend ahead of me.

    P.S. Should I mark this as resolved and bring up the other issues in a new thread (if I can’t figure them out myself) or leave it open for now?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change php to list images in a row’ is closed to new replies.