Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

James DiMeo
PLUS
James DiMeo
Courses Plus Student 2,013 Points

portfolio page wordpress development

hi i am curious as to why my portfolio page will only allow up to 10 pictures to be pasted in. Also i have 13 in my custom fields under portfolio. the top two lines align properly only if i try to put 13 images in , whereas the other two don't align properly leaving one img to the right and the other image to the left. if i delete and only use 8 images the same problem occurs with alignment. i took a screenshot but i dont know if i can post it her

James DiMeo
James DiMeo
Courses Plus Student 2,013 Points

here is my page-portfolio.php

<?php /* Template Name: Portfolio Page */ ?> <?php get_header(); ?>

<section class="row"> <div class="small-12 columns text-center"> <div class="leader">

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

  <h1><?php the_title(); ?></h1>

  <?php the_content(); ?>


<?php endwhile; endif; ?>

</div>

</div> </section>

<section class="row no-max pad"> <?php $args = array( 'post_type' => 'portfolio1'

);

$query = new WP_Query( $args );
?>

<?php if ( $query->have_posts() ) : while ( $query->have_posts() ) : $query->the_post(); ?> <div class="small-6 medium-4 large-3 columns grid-item"> <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail (''); ?></a>

</div>

<?php endwhile; endif; wp_reset_postdata();?> </section>

<?php get_template_part('content', 'portfolio' ); ?>

<?php get_footer(); ?>