Gaxas
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Multiple get_template_partThank you for answer.
I using tweaker4 theme. I have three different post styles: ets, ls and info.
This is loop-ets.php code:
<!-- Start the Loop. --> <?php $queryname = new WP_Query('cat=10,11,12,13,14,15,16,17,18'); while ($queryname->have_posts()) : $queryname->the_post(); ?> <div class="post-ets2"> <div class="entry-content"> <?php if ( has_post_thumbnail()) : ?> <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('thumbnail', array('class' => 'thumbalign', 'title' => '', 'alt' => '' )); ?></a> <?php endif; ?> <!-- Display the Title as a link to the Post's permalink. --> <div class="ets-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></div> <!-- Display the date (November 16th, 2009 format) and a link to other posts by this posts author. --> <div class="ets-date"><?php the_time('F jS, Y') ?></div><div class="ets-cat">ETS 2 mods / <?php the_category(', '); ?></div> <div class="ets-ls-text"><?php if(!empty($post->post_excerpt)): ?> <?php the_excerpt(); ?> <?php else: ?> <?php the_content('<div class="ets-ls-moretext">Read more...</div>'); ?> <a href="<?php the_permalink(); ?>#more-<?php the_ID(); ?>"><div class="ets-comment"><?php comments_number( 'Comment (0)', 'Comment (1)', 'Comments (%)' ); ?></a></div> <?php endif; ?> </div> </div><!-- close .entry-content--> </div> <!-- closes the first div box --> <?php endwhile; ?>
Thank You for help