Ver Mensaje Individual
  #3 (permalink)  
Antiguo 03/01/2015, 11:28
camilomascarell1987
 
Fecha de Ingreso: abril-2013
Mensajes: 39
Antigüedad: 11 años
Puntos: 0
Respuesta: index categoría

Cita:
Iniciado por ArturoGallegos Ver Mensaje
aquí no se facilita código para nada, salvo que contrates a alguien y le remuneres como debe ser $$$

Gratis solo es orientación, así que te mando a estudiar.... investiga wp_query y como usarlo para crear múltiples loops
Código PHP:
<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1// gets current page number ?>
<?php get_header
(); ?>
    
<div id="content">
<div class="archiveposts">
            
            <?php if (is_home() && $paged && option::get('featured_enable') == 'on' ) { get_template_part('featured-posts'); } // Featured News ?>

            <div class="rounded">
            <div class="archiveposts1">
            
                <?php
                    
global $query_string// required

                    /* Exclude categories from Recent Posts */
                    
if (option::get('$args') != 'off') {
                        if (
count(option::get('recent_part_exclude'))){
                            
$exclude_cats implode(",-", (array) option::get('recent_part_exclude'));
                             
$exclude_cats '-' $exclude_cats;
                            
$args['cat'] = $exclude_cats;
                            
                        }
                    }

                    
/* Exclude featured posts from Recent Posts */
                    
if (option::get('hide_featured') == 'on') {
                        
                        
$featured_posts = new WP_Query
                            array( 
                                
'post__not_in' => get_option'sticky_posts' ),
                                
'posts_per_page' => option::get('featured_art_number'),
                                
'meta_key' => 'wpzoom_is_featured',
                                
'meta_value' => 1                
                                
) );
                            
                        while (
$featured_posts->have_posts()) {
                            
$featured_posts->the_post();
                            global 
$post;
                            
$postIDs[] = $post->ID;
                        }
                        
$args['post__not_in'] = $postIDs;
                    }
     
                    
$args['paged'] = $paged;
                    if (
count($args) >= 1) {
                        
query_posts($args);
                    }
                    
?>

                    
                <?php get_template_part('loop'); ?>
            </div>
             </div> <!-- /rounded -->
        </div> <!-- /archive -->

     <?php if (is_home() && $paged && option::get('carousel_enable') == 'on' ) { get_template_part('wpzoom-carousel'); } // Horizontal Carousel ?>

     <?php if ( $paged && option::get('featured_categories') == 'on') {  // Home Categories (tabs)
            
get_template_part('featured-categories'); 
        }  
?>
        
    <?php if (is_home() && $paged && option::get('video_enable') == 'on' ) { get_template_part('video-slider'); } // Video Section ?>

     <?php if ( $paged || option::get('recent_posts') == 'on') { ?>
    
    <?php ?>
    
    
</div> <!-- /#content -->

<?php get_sidebar(); ?>
<?php get_footer
(); ?>