Foros del Web » Creando para Internet » Sistemas de gestión de contenidos » WordPress »

post en bloques

Estas en el tema de post en bloques en el foro de WordPress en Foros del Web. Amigos, ¿cómo podría hacer para que los post me salgan en bloques como esto? http://postimage.org/image/9eqsk0uln/ Saludos...
  #1 (permalink)  
Antiguo 15/12/2012, 12:55
Avatar de el_tigre  
Fecha de Ingreso: febrero-2006
Ubicación: Perú
Mensajes: 1.044
Antigüedad: 18 años, 2 meses
Puntos: 8
De acuerdo post en bloques

Amigos, ¿cómo podría hacer para que los post me salgan en bloques como esto?

http://postimage.org/image/9eqsk0uln/

Saludos
  #2 (permalink)  
Antiguo 17/12/2012, 07:05
Avatar de Nekko
Colaborador
 
Fecha de Ingreso: marzo-2008
Ubicación: Buenos Aires
Mensajes: 3.141
Antigüedad: 16 años, 1 mes
Puntos: 656
Respuesta: post en bloques

Proba creando un div y asignandole una clase personalizada (ej div class="cajaNota") y a dicha clase asignale un ancho fijo y la propiedad float:left. Ahí vas a ver como cambia el asunto y ya solo te restaría agregar margenes, padding, border, y acomodar los elementos restantes dentro.
__________________
Taller para crear themes wordpress desde cero | Presupuestos para trabajos particulares vía MP
  #3 (permalink)  
Antiguo 17/12/2012, 11:20
Avatar de el_tigre  
Fecha de Ingreso: febrero-2006
Ubicación: Perú
Mensajes: 1.044
Antigüedad: 18 años, 2 meses
Puntos: 8
De acuerdo Respuesta: post en bloques

Gracias Nekko, efectivamente me había creado una nueva clase.....

Código PHP:
.cajadatos {
    
floatleft;
    
border1px dotted;
    
margin-bottom2px;
    
margin-left2px;
    
margin-right2px;
    
margin-top2px;
    
width250px;

pero a la hora de llamar a la clase en el archivo.php es donde no encuentro donde ubicarlo.....esto es parte de mi archive.php

Código PHP:
get_header(); ?>

        <section id="primary">
            <div id="content" role="main">

            <?php if ( have_posts() ) : ?>
                
                <header class="page-header">
                    <h1 class="page-title">
                        <?php if ( is_day() ) : ?>
                            <?php printf__'Daily Archives: %s''twentyeleven' ), '<span>' get_the_date() . '</span>' ); ?>
                        <?php elseif ( is_month() ) : ?>
                            <?php printf__'Monthly Archives: %s''twentyeleven' ), '<span>' get_the_date_x'F Y''monthly archives date format''twentyeleven' ) ) . '</span>' ); ?>
                        <?php elseif ( is_year() ) : ?>
                            <?php printf__'Yearly Archives: %s''twentyeleven' ), '<span>' get_the_date_x'Y''yearly archives date format''twentyeleven' ) ) . '</span>' ); ?>
                        <?php else : ?>
                            <?php _e'Blog Archives''twentyeleven' ); ?>
                        <?php endif; ?>
                    </h1>
                </header>

                <?php twentyeleven_content_nav'nav-above' ); ?>

                <?php /* Start the Loop */ ?>
            
                <?php while ( have_posts() ) : the_post(); ?>

                    <?php
                        
/* Include the Post-Format-specific template for the content.
                         * If you want to overload this in a child theme then include a file
                         * called content-___.php (where ___ is the Post Format name) and that will be used instead.
                         */
                        
get_template_part'content'get_post_format() );
                    
?>
                
                <?php endwhile; ?>
            
                <?php twentyeleven_content_nav'nav-below' ); ?>

            <?php else : ?>

                <article id="post-0" class="post no-results not-found">
                    <header class="entry-header">
                        <h1 class="entry-title"><?php _e'Nothing Found''twentyeleven' ); ?></h1>
                    </header><!-- .entry-header -->

                    <div class="entry-content">
                        <p><?php _e'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.''twentyeleven' ); ?></p>
                        <?php get_search_form(); ?>
                    </div><!-- .entry-content -->
                </article><!-- #post-0 -->

            <?php endif; ?>

            </div><!-- #content -->
        </section><!-- #primary -->
  #4 (permalink)  
Antiguo 18/12/2012, 00:05
Avatar de el_tigre  
Fecha de Ingreso: febrero-2006
Ubicación: Perú
Mensajes: 1.044
Antigüedad: 18 años, 2 meses
Puntos: 8
Respuesta: post en bloques

Gracias Nekko, ya casi lo he logrado..........me falta definir una imagen de thumbnail en el excerp......pero allí vamos...

Etiquetas: bloques, post
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 01:46.