Plugins
está resueltoTengo un problema con la navegacion en la pagina principal,no se mueve de la pagina 1 , a pesar de que tiene como 30 paginas. NO funcionaba sin el plugin wp-pagenavi,despues de instalarlo,sigue igual,sin funcionar, que puede ser?.
Este es el codigo del index
<?php get_header(); ?>
<div class="col1">
<?php include(TEMPLATEPATH . '/includes/featured.php'); ?>
<?php
$showvideo = get_option('woo_show_video');
if($showvideo){ include(TEMPLATEPATH . '/includes/video.php'); }
?>
<?php
$layout = get_option('woo_layout');
include('layouts/'.$layout);
?>
</div><!--/col1-->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
<?php next_posts_link('« Previous Entries') ?>
<?php previous_posts_link('Next Entries »') ?>
Y el del Home
<?php get_header(); ?>
<div class="col1">
<?php include(TEMPLATEPATH . '/includes/featured.php'); ?>
<?php
$showvideo = get_option('woo_show_video');
if($showvideo){ include(TEMPLATEPATH . '/includes/video.php'); }
?>
<?php
$layout = get_option('woo_layout');
if ($layout == "default.php")
include('layouts/default.php');
elseif ($layout == "blog.php")
include('layouts/blog.php');
else
include('layouts/default.php');
?>
</div><!--/col1-->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
<?php next_posts_link('« Previous Entries') ?>
<?php previous_posts_link('Next Entries »') ?>
Podeis ver el problema en la pagina principal http://www.latecnopolis.com
Urge please, gracias
aver lo que pasa es tu estas tratando de añadir ese plugin de paginacion al theme verdad?
Lo que pasa es que tendrias que ver como esta el loop en. blog.php , default.php cual as configurado por defecto?
aver si adjuntas esos 2 archivos para verlos. y asi poderte ayudar.
No tengo ninguno de esos dos archivos que comentas...
claro que los debes tener adentro de la carpeta
http://latecnopolis.com/wp-content/themes/premiumnews/layouts/
Como lo se?
la porcion de codigo que colocastes lo dicen
<?php
$layout = get_option('woo_layout');
if ($layout == "default.php")
include('layouts/default.php');
elseif ($layout == "blog.php")
include('layouts/blog.php');
else
include('layouts/default.php');
?>
Vale,si perdona, si estan...jeje..
Este es el blog.php :
<div class="box">
<?php
include(TEMPLATEPATH . '/includes/version.php');
$the_query = new WP_Query('cat=-'. $ex_feat . ',-' . $ex_vid . '&showposts=' . $showposts . '&orderby=post_date&order=desc');
$counter = 0;
while ($the_query->have_posts()) : $the_query->the_post(); $do_not_duplicate = $post->ID;
?>
<?php $counter++; ?>
<div class="post-alt blog" <?php if ( ($counter == 4) ) { echo 'style="background:none !important;margin-bottom:0 !important;"'; ?><?php } ?>>
<?php if ( get_post_meta($post->ID, 'image', true) ) { ?> <!-- DISPLAYS THE IMAGE URL SPECIFIED IN THE CUSTOM FIELD -->
/thumb.php?src=<?php echo get_post_meta($post->ID, "image", $single = true); ?>&h=57&w=100&zc=1&q=95" alt="" class="th" />
<?php } else { ?> <!-- DISPLAY THE DEFAULT IMAGE, IF CUSTOM FIELD HAS NOT BEEN COMPLETED -->
/images/no-img-thumb.jpg" alt="" class="th" />
<?php } ?>
<h2><?php the_category(', ') ?></h2>
<h3>" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></h3>
<p class="posted">Posted on <?php the_time('d F Y'); ?></p>
<div class="entry">
<?php the_content('<span class="continue">Continue Reading</span>'); ?>
</div>
<p class="comments"><?php comments_popup_link('Comments (0)', 'Comments (1)', 'Comments (%)'); ?></p>
</div><!--/post-->
<?php endwhile; ?>
<div class="fix"></div>
<?php $archives_page = get_option('woo_archives_page') . '/'; ?>
<p class="ar hl3">" class="more">SEE MORE ARTICLES IN THE ARCHIVE</p>
</div>
ý este el default.php:
<div class="box">
<?php
include(TEMPLATEPATH . '/includes/version.php');
$the_query = new WP_Query('cat=-'. $ex_feat . ',-' . $ex_vid . '&showposts=' . $showposts . '&orderby=post_date&order=desc');
$counter = 0; $counter2 = 0;
while ($the_query->have_posts()) : $the_query->the_post(); $do_not_duplicate = $post->ID;
?>
<?php $counter++; $counter2++; ?>
<div class="post <?php if ($counter == 1) { echo 'fl'; } else { echo 'fr'; $counter = 0; } ?>">
<?php if ( get_post_meta($post->ID, 'image', true) ) { ?> <!-- DISPLAYS THE IMAGE URL SPECIFIED IN THE CUSTOM FIELD -->
/thumb.php?src=<?php echo get_post_meta($post->ID, "image", $single = true); ?>&h=57&w=100&zc=1&q=95" alt="" class="th" />
<?php } else { ?> <!-- DISPLAY THE DEFAULT IMAGE, IF CUSTOM FIELD HAS NOT BEEN COMPLETED -->
/images/no-img-thumb.jpg" alt="" class="th" />
<?php } ?>
<h2><?php the_category(', ') ?></h2>
<h3>" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></h3>
<p class="posted">Posted on <?php the_time('d F Y'); ?></p>
<p><?php echo strip_tags(get_the_excerpt(), ''); ?> <span class="continue">" href="<?php the_permalink() ?>">Continue Reading</span></p>
<p class="comments"><?php comments_popup_link('Comments (0)', 'Comments (1)', 'Comments (%)'); ?></p>
</div><!--/post-->
<?php if ( !($counter2 == $showposts) && ($counter == 0) ) { echo '<div class="hl-full"></div>'; ?> <div style="clear:both;"></div> <?php } ?>
<?php endwhile; ?>
<div class="fix" style="height:20px"></div>
<p class="ar hl3">" class="more">SEE MORE ARTICLES IN THE ARCHIVE</p>
</div><!--/box-->[code]
es por eso que no te va a funcionar el plugin. le falta modificar algo aver.
archivo blog.php y default.php
cambia esto
$the_query = new WP_Query('cat=-'. $ex_feat . ',-' . $ex_vid . '&showposts=' . $showposts . '&orderby=post_date&order=desc');
por esto
$the_query = new WP_Query('cat=-'. $ex_feat . ',-' . $ex_vid . '&showposts=' . $showposts . '&orderby=post_date&order=desc&paged='.$paged);
y me cuentas como te fue
lo que pasa es que como el bucle que generas no es uno interno de wordpress si no uno personalizado entonces no captura la variable de la paginacion por eso le añado esto paged='.$paged
prueba y me dices
Ahora va perfecto!
Muchisimas gracias por tu ayuda! Con gente como tu,da gusto de verdad.
Dame un (+)
hahahha broma eso es de cada uno.
Que bueno que te funcionara ok
Claro que si, ahi lo llevas
Hola CalinSoft,
Vi que ayudaste a Latecnopolis en este tema y me atrebo a pedirte ayuda pues veo que le sabes bien a este thema PREMIUMNEWS yo lo baje de su website oficial lo instale y lo corri perfectamente en un site que tengo en el hosting NEUBOX.NET, pero cuando lo migre a otro servidor de HOSTGATOR dejo de funcionar el silder de imagenes, ya me quebre 3 dias tratando de averiguar que cosa le pasa, pero aun sin exito recurro a los expertos.
Agradeceria tu ayuda, ya que tengo muy poca experiencia en WordPress.
Mi e site donde esta funcionando perfectamente es http://www.futbolregio.com
El site donde no funciona es http://www.soccerkids.com.mx (como cosa rara , cuando le doy sobre el fondo verde, donde deberia estar la foto me da el sig error:
Forbidden
You don't have permission to access /wp-content/themes/soccerkids/thumb.php on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8i DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at http://www.soccerkids.com.mx Port 80
Con mi poca experiencia l midifique los permisos pero pues no aun asi funciono, las dos instalaciones estan exactamente igual, no se por que no funciono en el servidor que realmente lo necesito.
Me podrias ayudar a investigar este caso???
Te lo agradeceria muchisimo.
Hola,
Me presento, mi nombre es Arigur y tengo un problema con el theme Branford Magazine en http://www.buenacomunicacion.com.ar
El error que me sale cuando intento subir una imagen o cambiar algo en setting general es:
Forbidden
You don't have permission to access /wp-admin/upload.php on this server.
Les agradecería me ayuden! saludos cordiales,
Debes Identificarte para publicar.