Quantcast
Channel: Site5 Free Premium WordPress Themes » All Posts
Viewing all articles
Browse latest Browse all 8865

Number of shown Portfolios on one Page

$
0
0

Hey,

I like your theme very much – now I use it since nearly 2 years, and still happy with it! A lotof stuff like Icons or the color I changed by myself, .. but this problem I cant solve without any help :(

I begin to use the Portfolio funktion. Great Work! I saw on your demo Page, on the portfolio section you have got 3×3 portfolio thumbnails, … but I just got 3×2 (2 lines with each 3). How to change this? I would like to add more! Maybe around 12 or better 24, because I begin to use this funktion as an gallery.

I compared the css you use on the demo page, can’t see any different – haha. Sorry I’ve no idea about html/php/css, .. just work like try and error haha

Just now I checked the archive-portfolio.php

<!-- begin .gallery -->

							<div class="gallery threeperrow">
								<ul id="itemList">
										<?php
										global $post, $paged, $wp_query;
										$args=array('post_type'=> 'portfolio','post_status'=> 'publish','orderby'=> 'menu_order','posts_per_page'=>6,'caller_get_posts'=>1,'paged'=>$paged,); query_posts($args); while (have_posts()): the_post();
										$taxo = wp_get_object_terms( get_the_ID(), 'types');
										?>
										<li class="<?php foreach ($taxo as $taxx) { echo strtolower(preg_replace('/\s+/', '-', $taxx->slug)). ' '; } ?>" data-id="id-<?php the_ID(); ?>">
										<div class="imgBox">

										<?php
										$thumb = get_image_path(get_post_meta($post->ID, 'snbp_pitemlink', true));
										if (!$thumb == '')
										{ ?>

										<img src="<?php echo get_template_directory_uri(); ?>/timthumb.php?src=<?php echo get_image_path(get_post_meta($post->ID, 'snbp_pitemlink', true)); ?>&h=196&w=285&zc=1" alt="<?php the_title(); ?>">

										<?php } else { ?>

										<img src="<?php echo get_template_directory_uri(); ?>/timthumb.php?src=/library/images/slidersamples/slidesample3.png&h=196&w=285&zc=1" alt="<?php the_title(); ?>" />

										<?php }?>

										</div>
										<div class="details">
											<?php the_title(); ?>
										</div>
										<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>" class="overlay"></a>
									</li>
									<?php endwhile;?>
								</ul>
							</div>

							<!-- end .gallery -->

This seems to me like the usefull code! If I change ‘posts_per_page’=>6 to 12 or 24, … nothing will happen, … now I run out of ideas :(

Would be verry happy if you could give me some idea or help me to solve the problem :)
Best wishes from germany!


Viewing all articles
Browse latest Browse all 8865

Trending Articles