Persomanlizare homepage – acum apare last videos
-
asa cum am mentionat in titlu as vrea sa editez homepage
acum apare last vodeos<div id="fullcontent"> <div id="topbar" class="clearfix"> <div class="leftinfo"> Latest Videos</div> </div> <?php $temp = $wp_query; $wp_query= null; $vcount = ft_of_get_option('fabthemes_video_count'); $wp_query = new WP_Query(); $wp_query->query('posts_per_page='.$vcount.'&post_type=video&paged='.$paged); ?> <?php while ($wp_query->have_posts()) : $wp_query->the_post(); ?> <div class="video-post" id="post-<?php the_ID(); ?>"> <div class="video-title"> <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?> </a></h2> </div> <?php $thumb = get_post_thumbnail_id(); $img_url = wp_get_attachment_url( $thumb,'full' ); //get full URL to image (use "large" or "medium" if the images too big) $image = aq_resize( $img_url, 165, 110, true ); //resize & crop the image ?> <?php if($image) : ?> <a href="<?php the_permalink(); ?>"><img class="video-image" src="<?php echo $image ?>"/></a> <?php endif; ?> </div> <!-- post end --> <?php endwhile; ?> <div class="clear"></div> <?php getpagenavi(); ?> <?php $wp_query = null; $wp_query = $temp;?> </div>
as vrea sa schimb sa apara:
1 last videos dintr-o anumita categorie
2 sa apara doar 4 (in acest moment apar 12
Vizualizare 2 răspunsuri - 1 la 2 (din 2 în total)
Vizualizare 2 răspunsuri - 1 la 2 (din 2 în total)
- Subiectul „Persomanlizare homepage – acum apare last videos” este închis pentru răspunsuri noi.