Foros del Web » Creando para Internet » Diseño web »

!ayuda! mostrar post enteros en pagina principal

Estas en el tema de !ayuda! mostrar post enteros en pagina principal en el foro de Diseño web en Foros del Web. hola amigos lo que quiero aser es lo siguiente: tengo un wordpress y un teme el cual al momento de postear en la pagina principal ...
  #1 (permalink)  
Antiguo 12/10/2010, 22:03
Avatar de newmesis  
Fecha de Ingreso: octubre-2010
Ubicación: Chillán, Chile, Chile
Mensajes: 42
Antigüedad: 13 años, 6 meses
Puntos: 0
!ayuda! mostrar post enteros en pagina principal

hola
amigos
lo que quiero aser es lo siguiente:
tengo un wordpress y un teme el cual al momento de postear en la pagina principal sale el post creado pero solo unextracto y da la opcion de leer mas la idea es sacar eso y poner el post completo sin pedir que siga leyendo
noce que codigo enviarles digame y lo envio
  #2 (permalink)  
Antiguo 12/10/2010, 22:08
Avatar de iwexcoder  
Fecha de Ingreso: mayo-2009
Ubicación: San Carlos de Bariloche
Mensajes: 404
Antigüedad: 14 años, 10 meses
Puntos: 16
Respuesta: !ayuda! mostrar post enteros en pagina principal

Sin ver el código es difícil poder adivinar, todavía esos poderes no tenemos...por el momento, escribe el código del loop de los post del index para ver que parte de código debes borrar.
__________________
iWexCoder.com - Programación - Desarrollo Movil - Programación Web www.iwexcoder.com
  #3 (permalink)  
Antiguo 12/10/2010, 22:18
Avatar de newmesis  
Fecha de Ingreso: octubre-2010
Ubicación: Chillán, Chile, Chile
Mensajes: 42
Antigüedad: 13 años, 6 meses
Puntos: 0
Respuesta: !ayuda! mostrar post enteros en pagina principal

Código HTML:
Ver original
  1. <?php if (is_archive()) $post_number = get_option('polished_archivenum_posts');
  2. if (is_search()) $post_number = get_option('polished_searchnum_posts');
  3. if (is_tag()) $post_number = get_option('polished_tagnum_posts'); ?>
  4. <?php get_header(); ?>
  5.    
  6.     <?php global $query_string; query_posts($query_string . "&showposts=$post_number&paged=$paged"); ?>
  7.    
  8.     <div id="wrap">
  9.     <!-- Main Content-->
  10.         <img src="<?php bloginfo('stylesheet_directory');?>/images/content-top.gif" alt="content top" class="content-wrap" />
  11.         <div id="content">
  12.             <!-- Start Main Window -->
  13.             <div id="main">
  14.    
  15.                 <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  16.  
  17.                     <?php include(TEMPLATEPATH . '/includes/entry.php'); ?>
  18.  
  19.                 <?php endwhile; ?>
  20.  
  21.                     <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); }
  22.                     else { ?>
  23.                         <?php include(TEMPLATEPATH . '/includes/navigation.php'); ?>
  24.                     <?php } ?>
  25.  
  26.                 <?php else : ?>
  27.                     <?php include(TEMPLATEPATH . '/includes/no-results.php'); ?>
  28.                 <?php endif; wp_reset_query(); ?>
  29.             </div>
  30.             <!-- End Main -->
  31. <?php get_sidebar(); ?>
  32. <?php get_footer(); ?>
  #4 (permalink)  
Antiguo 12/10/2010, 22:38
Avatar de newmesis  
Fecha de Ingreso: octubre-2010
Ubicación: Chillán, Chile, Chile
Mensajes: 42
Antigüedad: 13 años, 6 meses
Puntos: 0
Respuesta: !ayuda! mostrar post enteros en pagina principal

Cita:
Iniciado por iwexcoder Ver Mensaje
Sin ver el código es difícil poder adivinar, todavía esos poderes no tenemos...por el momento, escribe el código del loop de los post del index para ver que parte de código debes borrar.
Código HTML:
Ver original
  1. <?php if (is_archive()) $post_number = get_option('polished_archivenum_posts');
  2. if (is_search()) $post_number = get_option('polished_searchnum_posts');
  3. if (is_tag()) $post_number = get_option('polished_tagnum_posts'); ?>
  4. <?php get_header(); ?>
  5.    
  6.     <?php global $query_string; query_posts($query_string . "&showposts=$post_number&paged=$paged"); ?>
  7.    
  8.     <div id="wrap">
  9.     <!-- Main Content-->
  10.         <img src="<?php bloginfo('stylesheet_directory');?>/images/content-top.gif" alt="content top" class="content-wrap" />
  11.         <div id="content">
  12.             <!-- Start Main Window -->
  13.             <div id="main">
  14.    
  15.                 <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  16.  
  17.                     <?php include(TEMPLATEPATH . '/includes/entry.php'); ?>
  18.  
  19.                 <?php endwhile; ?>
  20.  
  21.                     <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); }
  22.                    else { ?>
  23.                         <?php include(TEMPLATEPATH . '/includes/navigation.php'); ?>
  24.                     <?php } ?>
  25.  
  26.                 <?php else : ?>
  27.                     <?php include(TEMPLATEPATH . '/includes/no-results.php'); ?>
  28.                 <?php endif; wp_reset_query(); ?>
  29.             </div>
  30.             <!-- End Main -->
  31. <?php get_sidebar(); ?>
  32. <?php get_footer(); ?>
  #5 (permalink)  
Antiguo 13/10/2010, 20:15
Avatar de newmesis  
Fecha de Ingreso: octubre-2010
Ubicación: Chillán, Chile, Chile
Mensajes: 42
Antigüedad: 13 años, 6 meses
Puntos: 0
Respuesta: !ayuda! mostrar post enteros en pagina principal

porfavor es urgente quien me puede ayudar
  #6 (permalink)  
Antiguo 14/10/2010, 18:19
Avatar de newmesis  
Fecha de Ingreso: octubre-2010
Ubicación: Chillán, Chile, Chile
Mensajes: 42
Antigüedad: 13 años, 6 meses
Puntos: 0
Respuesta: !ayuda! mostrar post enteros en pagina principal

nadie responde en este foro??
  #7 (permalink)  
Antiguo 14/10/2010, 18:40
Avatar de ElJavista
Colaborador
 
Fecha de Ingreso: marzo-2007
Ubicación: Lima Perú
Mensajes: 2.231
Antigüedad: 17 años, 1 mes
Puntos: 67
Respuesta: !ayuda! mostrar post enteros en pagina principal

Muestra el contenido de archivo entry.php.
  #8 (permalink)  
Antiguo 15/10/2010, 19:47
Avatar de newmesis  
Fecha de Ingreso: octubre-2010
Ubicación: Chillán, Chile, Chile
Mensajes: 42
Antigüedad: 13 años, 6 meses
Puntos: 0
Respuesta: !ayuda! mostrar post enteros en pagina principal

Cita:
Iniciado por ElJavista Ver Mensaje
Muestra el contenido de archivo entry.php.
Código PHP:
Ver original
  1. <?php $thumb = '';
  2.      
  3.     $width = get_option('polished_thumbnail_width_usual');
  4.     $height = get_option('polished_thumbnail_height_usual');
  5.     $classtext = 'post_img';
  6.     $titletext = get_the_title();
  7.    
  8.     $thumbnail = get_thumbnail($width,$height,$classtext,$titletext,$titletext);
  9.     $thumb = $thumbnail["thumb"]; ?>
  10.  
  11. <!-- New Post-->
  12. <div class="new_post">
  13.     <h2 class="title"><a href="<?php the_permalink() ?>" title="<?php printf(__ ('Permanent Link to %s', 'Polished'), $titletext) ?>"><?php the_title(); ?></a></h2>
  14.    
  15.     <?php if (get_option('polished_postinfo1') <> '') include(TEMPLATEPATH . '/includes/postinfo.php'); ?>
  16.    
  17.     <div class="postcontent">
  18.         <?php if($thumb <> '') { ?>
  19.             <a href="<?php the_permalink() ?>" title="<?php printf(__ ('Permanent Link to %s', 'Polished'), $titletext) ?>">
  20.                 <?php print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext , $width, $height, $classtext); ?>
  21.             </a>
  22.         <?php }; ?>
  23.        
  24.         <?php if (get_option('polished_blog_style') == 'false') { ?>
  25.             <p><?php truncate_post(445); ?></p>
  26.         <?php } else { ?>
  27.             <?php the_content(''); ?>
  28.         <?php }; ?>
  29.  
  30.         <span class="readmore_b"><a class="readmore" href="<?php the_permalink(); ?>"><?php _e('Read More','Polished'); ?></a></span>
  31.         <div class="clear"></div>
  32.     </div>  <!-- end .postcontent -->
  33. </div>
  34. <!-- End Post -->
  #9 (permalink)  
Antiguo 16/10/2010, 13:43
Avatar de ElJavista
Colaborador
 
Fecha de Ingreso: marzo-2007
Ubicación: Lima Perú
Mensajes: 2.231
Antigüedad: 17 años, 1 mes
Puntos: 67
Respuesta: !ayuda! mostrar post enteros en pagina principal

Ok, puedes hacer dos cosas, en el administrador ese tema debe haber una opción llamada blog style o algo así, si lo pones en falso seguro saldrá como quieres. Otra opción sería editar este código:

Código:
<?php if (get_option('polished_blog_style') == 'false') { ?>           
 <p><?php truncate_post(445); ?></p>        
<?php } else { ?>            
<?php the_content(''); ?>        
<?php }; ?>
Por esto:

Código:
<?php the_content(); ?>
Espero que te sirva.

Última edición por ElJavista; 17/10/2010 a las 12:09

Etiquetas: cms, css, html, php, wordpress
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 18:35.