Merhaba arkadaşlar. İstediğim şey, Video kategorisini açınca diğer kategorilerden farklı bir şekilde listelemek.
örnek resim :
Çok uğraştım ama kendi temamda bunu uyarlayamadım bir türlü.
archive.php yi Category-id.php yaptım fakat onun içini nasıl şekillendireceğimi hiçbir yerde yazmamışlar. O kısmı üstünkörü geçmişler gibi geldi. Yardımcı olabilecek birisi var mı?
bu benim archive.php kodum:
örnek resim :
Çok uğraştım ama kendi temamda bunu uyarlayamadım bir türlü.
archive.php yi Category-id.php yaptım fakat onun içini nasıl şekillendireceğimi hiçbir yerde yazmamışlar. O kısmı üstünkörü geçmişler gibi geldi. Yardımcı olabilecek birisi var mı?
bu benim archive.php kodum:
Kod:
<?php
global $options; foreach ($options as $value) { if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); } }
$dateformat = get_option('date_format');
$timeformat = get_option('time_format');
?>
<?php get_header(); ?>
<div id="middle">
<div id="posts">
<?php if ( have_posts() ) the_post(); ?>
<h3 class="recent">
<?php /* category archive */ if (is_category()) { ?> <?php _e('Kategori:', 'wpzoom'); ?> <?php single_cat_title(); ?>
<?php /* tag archive */ } elseif( is_tag() ) { ?><?php _e('Yazı şu etiketle:', 'wpzoom'); ?> "<?php single_tag_title(); ?>"
<?php /* daily archive */ } elseif (is_day()) { ?><?php _e('Arşiv', 'wpzoom'); ?> <?php the_time('F jS, Y'); ?>
<?php /* monthly archive */ } elseif (is_month()) { ?><?php _e('Arşiv', 'wpzoom'); ?> <?php the_time('F, Y'); ?>
<?php /* yearly archive */ } elseif (is_year()) { ?><?php _e('Arşiv', 'wpzoom'); ?> <?php the_time('Y'); ?>
<?php /* author archive */ } elseif (is_author()) { ?><?php printf( __( 'Gönderen: %s', 'wpzoom' ), "<strong>". get_the_author()."</strong>" ); ?><?php /* paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<?php _e('Arşiv', 'wpzoom'); ?><?php } ?>
</h3>
<?php rewind_posts(); ?>
<?php while ( have_posts() ) : the_post(); ?>
<div class="homepost">
<?php unset($img);
if ( current_theme_supports( 'post-thumbnails' ) && has_post_thumbnail() ) {
$thumbURL = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), '' );
$img = $thumbURL[0]; }
else {
unset($img);
if ($wpzoom_cf_use == 'Yes') { $img = get_post_meta($post->ID, $wpzoom_cf_photo, true); }
else {
if (!$img) { $img = catch_that_image($post->ID); } }
}
if ($img) { $img = wpzoom_wpmu($img); ?>
<div class="thumb"><a rel="nofollow" href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><img src="<?php bloginfo('template_directory'); ?>/scripts/timthumb.php?src=<?php echo $img ?>&w=130&h=90&zc=1" alt="<?php the_title(); ?>" /></a> </div><?php } ?>
<div class="rightcontp">
<div class="bubble"><?php comments_popup_link('0', '1', '%', ' ', ' '); ?></div>
<h3><a rel="nofollow" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a> </h3>
<?php the_excerpt(); ?>
<div class="post-meta"><?php _e('Gönderen', 'wpzoom');?> <?php the_author_posts_link(); ?> <?php _e('on', 'wpzoom');?> <strong><?php the_time("$dateformat $timeformat"); ?></strong></div>
</div>
</div>
<?php endwhile; ?>
</div> <!-- end posts -->
<div class="navigation">
<?php if (function_exists('wp_pagenavi')) { wp_pagenavi(); } else { ?>
<div class="floatleft"><?php next_posts_link( __('« Eski Yazılar', 'wpzoom') ); ?></div>
<div class="floatright"><?php previous_posts_link( __('Yeni Yazılar »', 'wpzoom') ); ?></div>
<?php } ?>
</div>
</div><!-- end middle -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>