olszakmike
Forum Replies Created
Viewing 8 replies - 1 through 8 (of 8 total)
-
Forum: Fixing WordPress
In reply to: Tagged images on seperate page?Hey super thanks for your help man. appreciate it!!!
Forum: Fixing WordPress
In reply to: Tagged images on seperate page?Great it works!!! one more thing. is it possible to link to the full size image from the portfolio page?
Forum: Fixing WordPress
In reply to: Tagged images on seperate page?yeah i’ve posted too much ?? sorry
Forum: Fixing WordPress
In reply to: Tagged images on seperate page?OK i’ve created the portfolio.php file from the page.php.
Added the code on top:
<?php /* Template Name: portfolio */ ?></strong>
and added the other code you posted as well. This is how my code looks now.
<?php /* Template Name: portfolio */ ?> <?php get_header(); ?> <?php $options = get_option('pb_options'); ?> <div id="middle-contents" class="clearfix"> <div id="left-col"> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <div class="post" id="single"> <h2><?php the_title(); ?></h2> <ul class="post-info"> <?php if ($options['author']) : ?><li><?php _e('By ','piano-black'); ?><?php the_author_posts_link(); ?></li><?php endif; ?> <?php edit_post_link(__('[ EDIT ]', 'piano-black'), '<li class="post-edit">', '</li>' ); ?> </ul> <div class="post-content"> <?php the_content(__('Read more', 'piano-black')); ?> <?php wp_link_pages(); ?> </div> </div> <?php endwhile; else: ?> <div class="post-content"> <p><?php _e("Sorry, but you are looking for something that isn't here.","piano-black"); ?></p> </div> <?php endif; ?> <?php if (function_exists('wp_list_comments')) { comments_template('', true); } else { comments_template(); } ?> </div><!-- #left-col end --> <?php get_sidebar(); ?> </div><!-- #middle-contents end --> <?php get_footer(); ?> <?php // query posts to get only posts with portfolio category assigned query_posts('cat=10'); //example ID for category "portfolio" ?> <?php while (have_posts()) : the_post(); ?><!-- begin of loop --> <?php $args = array('post_parent' => $post->ID, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID' ); $images = get_children($args); if(!empty($images)){ foreach( $images as $image ) { $img = wp_get_attachment_image($image->ID, $size='thumbnail', $icon = false); echo $img; } } ?> <?php endwhile ?><!-- end of loop -->
I have no idea what i was supposed to do (sorry not a programmer), but this does not work.
can you please give me a hand with this?
Forum: Fixing WordPress
In reply to: Tagged images on seperate page?‘
Forum: Fixing WordPress
In reply to: Tagged images on seperate page?‘
Forum: Fixing WordPress
In reply to: Tagged images on seperate page?–
Forum: Fixing WordPress
In reply to: Page with images from different postsCool thanks. Any idea how i should tackle this? i’m not a programmer so creating a template will be a difficult task i guess.
Viewing 8 replies - 1 through 8 (of 8 total)