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

Ayuda con theme de Wordpress

Estas en el tema de Ayuda con theme de Wordpress en el foro de WordPress en Foros del Web. Hola gente, Me salta un error cuando coloco un theme en mi wordpress, miren el siguiente vínculo: http://www.quebebota.com/blog2/ ¿Saben que puede ser? Cualquier cos diganme ...
  #1 (permalink)  
Antiguo 14/03/2009, 17:13
 
Fecha de Ingreso: diciembre-2007
Ubicación: Buenos Aires
Mensajes: 328
Antigüedad: 16 años, 5 meses
Puntos: 1
Ayuda con theme de Wordpress

Hola gente,

Me salta un error cuando coloco un theme en mi wordpress, miren el siguiente vínculo:

http://www.quebebota.com/blog2/

¿Saben que puede ser?

Cualquier cos diganme que les facilito los archivos necesarios (include, etc)

Saludos y gracias desde ya
  #2 (permalink)  
Antiguo 14/03/2009, 21:13
Avatar de lucasan
Colaborador
 
Fecha de Ingreso: junio-2007
Ubicación: Cali - Colombia
Mensajes: 1.144
Antigüedad: 16 años, 10 meses
Puntos: 59
Respuesta: Ayuda con theme de Wordpress

Hola.

Mira tu línea 11, esta tratando de incluir un archivo. muéstranos esa línea 11.
__________________
Plan Original Desarrollo Web
~$>sudo apt-get install -f
"Asi debería arreglarse todo en la vida"
  #3 (permalink)  
Antiguo 14/03/2009, 21:16
 
Fecha de Ingreso: diciembre-2007
Ubicación: Buenos Aires
Mensajes: 328
Antigüedad: 16 años, 5 meses
Puntos: 1
Respuesta: Ayuda con theme de Wordpress

Gracias por la colaboración Lucasan.

La línea 11 dice lo siguiente:

Código:
				include('layouts/'.$layout);
Y aca dejo los códigos de los dos archivos que hay en /layouts:

blog.php

Cita:
<?php
include(TEMPLATEPATH . '/includes/version.php');

$the_query = new WP_Query('cat=-'. $ex_feat . ',-' . $ex_vid . ',-' . $ex_aside . '&showposts=' . $showposts . '&orderby=post_date&order=desc');
$wp_query->in_the_loop = true; // Need this for tags to work
while ($the_query->have_posts()) : $the_query->the_post(); $do_not_duplicate = $post->ID;
?>

<h2><a title="Permanent Link to <?php the_title(); ?>" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>

<div class="date-comments">
<p class="fl"><?php the_time('D, M j, Y'); ?></p>
<p><span class="fr comments"><?php comments_popup_link('0 Comments', '1 Comment', '% Comments'); ?></span></p>
</div>

<?php if ( get_post_meta($post->ID, 'image', true) ) { ?> <!-- DISPLAYS THE IMAGE URL SPECIFIED IN THE CUSTOM FIELD -->

<img src="<?php echo bloginfo('template_url'); ?>/thumb.php?src=<?php echo get_post_meta($post->ID, "image", $single = true); ?>&amp;h=75&amp;w=75&amp;zc=1&amp;q=95" alt="<?php the_title(); ?>" class="fl" style="margin-top:5px;" />

<?php } ?>

<div class="entry">
<?php the_content(); ?>
</div>

<div class="continue-tags">
<p class="fl"><a title="Permanent Link to <?php the_title(); ?>" href="<?php the_permalink() ?>">Continue reading...</a></p>
<p><?php the_tags('<span class="fr tags">', ', ', '</span>'); ?></p>
</div>

<?php endwhile; ?>

<div class="headlines">

<?php
include(TEMPLATEPATH . '/includes/version.php');

$the_query = new WP_Query('cat=-'. $ex_feat . ',-' . $ex_vid . ',-' . $ex_aside . '&showposts=' . $show_headlines . '&offset=' . $showposts . '&orderby=post_date&order=desc');
$wp_query->in_the_loop = true; // Need this for tags to work
while ($the_query->have_posts()) : $the_query->the_post(); $do_not_duplicate = $post->ID;
?>

<dl>
<dt><a title="Permanent Link to <?php the_title(); ?>" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a> &nbsp; <em><?php the_time('D, M j, Y'); ?></em></dt>
<dd><a href="#"><?php comments_popup_link('0 Comments', '1 Comment', '% Comments'); ?></a></dd>
</dl>

<?php endwhile; ?>

</div><!--/headlines-->

<?php $archives_page = get_option('woo_archives_page') . '/'; ?>

<div class="ar"><a href="<?php echo "$archives_page"; ?>" class="more">Find more articles in the archives</a></div>
Default.php

Cita:
<?php
include(TEMPLATEPATH . '/includes/version.php');

$the_query = new WP_Query('cat=-'. $ex_feat . ',-' . $ex_vid . ',-' . $ex_aside . '&showposts=' . $showposts . '&orderby=post_date&order=desc');
$wp_query->in_the_loop = true; // Need this for tags to work
while ($the_query->have_posts()) : $the_query->the_post(); $do_not_duplicate = $post->ID;
?>

<h2><a title="Permanent Link to <?php the_title(); ?>" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>

<div class="date-comments">
<p class="fl"><?php the_time('D, M j, Y'); ?></p>
<p><span class="fr comments"><?php comments_popup_link('0 Comments', '1 Comment', '% Comments'); ?></span></p>
</div>

<?php if ( get_post_meta($post->ID, 'image', true) ) { ?> <!-- DISPLAYS THE IMAGE URL SPECIFIED IN THE CUSTOM FIELD -->

<img src="<?php echo bloginfo('template_url'); ?>/thumb.php?src=<?php echo get_post_meta($post->ID, "image", $single = true); ?>&amp;h=75&amp;w=75&amp;zc=1&amp;q=95" alt="<?php the_title(); ?>" class="fl" style="margin-top:5px;" />

<?php } ?>

<p><?php echo strip_tags(get_the_excerpt(), '<a><strong>'); ?></p>


<div class="continue-tags">
<p class="fl"><a title="Permanent Link to <?php the_title(); ?>" href="<?php the_permalink() ?>">Continue reading...</a></p>
<p><?php the_tags('<span class="fr tags">', ', ', '</span>'); ?></p>
</div>

<?php endwhile; ?>

<div class="headlines">

<?php
include(TEMPLATEPATH . '/includes/version.php');

$the_query = new WP_Query('cat=-'. $ex_feat . ',-' . $ex_vid . ',-' . $ex_aside . '&showposts=' . $show_headlines . '&offset=' . $showposts . '&orderby=post_date&order=desc');
$wp_query->in_the_loop = true; // Need this for tags to work
while ($the_query->have_posts()) : $the_query->the_post(); $do_not_duplicate = $post->ID;
?>

<dl>
<dt><a title="Permanent Link to <?php the_title(); ?>" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a> &nbsp; <em><?php the_time('D, M j, Y'); ?></em></dt>
<dd><?php comments_popup_link('0 Comments', '1 Comment', '% Comments'); ?></dd>
</dl>

<?php endwhile; ?>

</div><!--/headlines-->

<div class="ar"><a href="<?php echo bloginfo('wpurl').'/?page_id='.$GLOBALS['archives_id']; ?>" class="more">Find more articles in the archives</a></div>

Última edición por Federic0; 14/03/2009 a las 21:24
  #4 (permalink)  
Antiguo 14/03/2009, 21:46
Avatar de lucasan
Colaborador
 
Fecha de Ingreso: junio-2007
Ubicación: Cali - Colombia
Mensajes: 1.144
Antigüedad: 16 años, 10 meses
Puntos: 59
Respuesta: Ayuda con theme de Wordpress

Aparentemente es un problema de la variable $layout.

Haz lo siguiente, justo antes de esa línea 11 (antes de una etiqueta asi <?php ) coloca este trozo de código y nos cuentas que pasa.

Código PHP:
<?php print_r($layout?>
Saludos.
__________________
Plan Original Desarrollo Web
~$>sudo apt-get install -f
"Asi debería arreglarse todo en la vida"
  #5 (permalink)  
Antiguo 15/03/2009, 08:33
 
Fecha de Ingreso: diciembre-2007
Ubicación: Buenos Aires
Mensajes: 328
Antigüedad: 16 años, 5 meses
Puntos: 1
Respuesta: Ayuda con theme de Wordpress

Buenos dias,

Me sigue tirando el mismo error.

Me quedó así, pero sigue sin andar:

Cita:
<?php get_header(); ?>

<?php include(TEMPLATEPATH . '/includes/featured.php'); ?>

<div id="centercol">

<?php print_r($layout) ?>

<?php

$layout = get_option('woo_layout');

include('layouts/'.$layout);

?>

</div><!--/centercol-->

<?php get_sidebar(); ?>

<?php get_footer(); ?>
Ojalá tenga solución porque me encanta ese template.
  #6 (permalink)  
Antiguo 15/03/2009, 09:16
 
Fecha de Ingreso: diciembre-2007
Ubicación: Buenos Aires
Mensajes: 328
Antigüedad: 16 años, 5 meses
Puntos: 1
Respuesta: Ayuda con theme de Wordpress

Ya está solucionado, mil gracias por la colaboración igual.
Había que tocar una boludes en la configuración del theme.
Saludos!
  #7 (permalink)  
Antiguo 15/03/2009, 09:23
Avatar de lucasan
Colaborador
 
Fecha de Ingreso: junio-2007
Ubicación: Cali - Colombia
Mensajes: 1.144
Antigüedad: 16 años, 10 meses
Puntos: 59
Respuesta: Ayuda con theme de Wordpress

Bueno, ahora qu eveo tu código, hazlo al revés.

Código PHP:
<?php

$layout 
get_option('woo_layout');

include(
'layouts/'.$layout);

?>

<?php print_r($layout?>
Quiero ver que tiene esa variable $layout y cual es el posible problema.

Aunque viendo ya el código, ve al panel de administracion, en las opciones del tema (último menu creo) y busca donde te dan la opción de elegir el tema o la presentación y elige uno diferente al que tienes actualmente.

Saludos.
__________________
Plan Original Desarrollo Web
~$>sudo apt-get install -f
"Asi debería arreglarse todo en la vida"
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 02:25.