Dudas novato sobre plugin wp-pagenavi

  • Autor Autor xuan
  • Fecha de inicio Fecha de inicio
X

xuan

tengo un par de dudas respecto a este plugin.

ya lo instale, lo active ahora.

cual es el codigo verdadero para insertar ?

ya inserte unos que andaban por aqui y no funcionan, no mandan a la siguiente pagina.

como hago para que se active el estilo que viene por defecto?

le tengo que agregar lineas al css? yo veo webs con el plugin muy bonito pero la mia se ve asi 123.

con los numeros pegados.

ojala me puedan ayudar
 
WordPress › WP-PageNavi « WordPress Plugins INSTALACION

CSS; podes descargarles un par de estilo, si googleas vas a encontar un par que andan por ahí

Saludos 😉

si hermano pero el prblema es que no se como hechar andar el estilo.
no se si se crea un div y luego aca en el php ya se pone, no especifica bien en los tutoriales.

se ve asi mi estilo Pagina 2 de 2«12 .

y no es literal, asi se ve tal y cual, sin ningun estilo

aparte no direcciona ala siguiente pagina, dise urldelaweb/page/2/, pero es la uno, no funciona.

no se si es por mis permalinks :frown:
 
Última edición:
En la administración de el plugin tienes para activar el css que viene por defecto. Además el css viene activo pordefecto... así que lo habrás desactivado, si no te sale la opción es que tienes el plugin desactivado.
 
En la administración de el plugin tienes para activar el css que viene por defecto. Además el css viene activo pordefecto... así que lo habrás desactivado, si no te sale la opción es que tienes el plugin desactivado.


AAAAAAAAAH! JAJAJAJAJAJAJA


me voy a dar de topes en la pared XD

si eso era man no estaba activado!! xDD

pero ahora no dirige a la siguiente! pagina, nadamas me falta eso y ya :frown:

dirige a urldelaweb/page/2/, pero es la uno, no funciona.

no se si es por mis permalinks
 
<?php $latest_videos = new WP_query(); $latest_videos->query('showposts=5&cat='.$option['video']); ?><?php if ($latest_videos->have_posts()) : ?><h1 class="header_1">Ultimas Peliculas<ul id="more_in"> <li class="rssimg"><a href="<?php print get_category_feed_link($option['video']); ?>">RSS</a></li> <li><a href="<?php print get_category_link($option['video']); ?>">Ver todas las peliculas <?php print get_cat_name($option['video']); ?> &raquo;</a></li></ul></h1><ul id="latest_videos"><?php global $wp_query; $wp_query->in_the_loop = true; ?><?php while ($latest_videos->have_posts()) : $latest_videos->the_post(); ?> <li> <div class="thumb">

</div>
<div class="entry"> <h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" rel="bookmark"><?php the_title(); ?></a></h2> <div class="inside"> <ul> <li><b><?php the_time('d M y'); ?> at <?php the_time('G:i'); ?></b></li> <?php if(function_exists('the_views')) { print '<li class="view"><b>'; the_views(); print '</b> Vistas</li>'; } ?> <li class="comment"><a href="<?php comments_link(); ?>"><?php comments_number('0 Comentarios', '1 Comentario', '% Comentarios'); ?></a></li><p> <?php if(function_exists('the_ratings')) { print '<li class="rate">'; the_ratings(); print '</li>'; } ?></p> </ul> <?php the_excerpt(); ?> <div class="clear"></div> </div> <div class="author"> <?php echo get_avatar(get_the_author_email(), '30'); ?> Publicada por <?php the_author_posts_link(); ?>. <?php the_tags('<div class="tags">Etiquetada con: ', ', ', '</div>'); ?> </div> </div><div class="clear"></div> </li><?php endwhile; ?></ul><a href="<?php print get_category_link($option['video']); ?>" class="browse"><?php print get_cat_name($option['video']); ?> &raquo;</a><div class="clear"></div>
<!-- Plugin Navigation -->


<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>



<div class="clear"></div> <!-- End -->
<?php endif; ?>
 
tienes que añadir

Insertar CODE, HTML o PHP:
     <?php 
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
?>

y delante de showpost tienes k añadir paged=$paged& y ya
 
tienes que añadir

Insertar CODE, HTML o PHP:
     <?php 
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
?>

y delante de showpost tienes k añadir paged=$paged& y ya

me puedes poner bien el codigo en negrita porfa? se lo puse y no funciono, creo que esta incorrecto
 
No me di cuenta.. es por que utiliza '' cambia esto:

Insertar CODE, HTML o PHP:
query('showposts=5&cat='.$option['video']);

por

Insertar CODE, HTML o PHP:
query("paged=$paged&showposts=5&cat=$option['video']");

y añade lo k te dije

Insertar CODE, HTML o PHP:
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
 
con este codigo muestra solo una parte de la plantilla

query("paged=$paged&showposts=5&cat=$option['video']");

supongo que no lleva "
 
?? parte de la plantilla? ehms? pega aqui como te está quedando el index.php según las modificaciones que hicistes, epro hazlo entre los tags [*code][*/code] sin los *

ponlo así y ya te irá

Insertar CODE, HTML o PHP:
<?php 
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$latest_videos = new WP_query(); $latest_videos->query('showposts=5&cat='.$option['video'].'&paged='.$paged); ?><?php if ($latest_videos->have_posts()) : ?><h1 class="header_1">Ultimas Peliculas<ul id="more_in">	<li class="rssimg"><a rel="nofollow" href="<?php print get_category_feed_link($option['video']); ?>">RSS</a></li>	<li><a rel="nofollow" href="<?php print get_category_link($option['video']); ?>">Ver todas las peliculas <?php print get_cat_name($option['video']); ?> &raquo;</a></li></ul></h1><ul id="latest_videos"><?php global $wp_query; $wp_query->in_the_loop = true; ?><?php while ($latest_videos->have_posts()) : $latest_videos->the_post(); ?>	<li>		<div class="thumb">

</div>		
<div class="entry">	<h2><a rel="nofollow" href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>	<div class="inside">	<ul>		<li><b><?php the_time('d M y'); ?> at <?php the_time('G:i'); ?></b></li>		<?php if(function_exists('the_views')) { print '<li class="view"><b>'; the_views(); print '</b> Vistas</li>'; } ?>		<li class="comment"><a rel="nofollow" href="<?php comments_link(); ?>"><?php comments_number('0 Comentarios', '1 Comentario', '% Comentarios'); ?></a></li><p>		<?php if(function_exists('the_ratings')) { print '<li class="rate">'; the_ratings(); print '</li>'; } ?></p>	</ul>	<?php the_excerpt(); ?>	<div class="clear"></div>	</div>	<div class="author">	<?php echo get_avatar(get_the_author_email(), '30'); ?>	Publicada por <?php the_author_posts_link(); ?>.	<?php the_tags('<div class="tags">Etiquetada con: ', ', ', '</div>'); ?>	</div>	</div><div class="clear"></div>			</li><?php endwhile; ?></ul><a rel="nofollow" href="<?php print get_category_link($option['video']); ?>" class="browse"><?php print get_cat_name($option['video']); ?> &raquo;</a><div class="clear"></div>
<!-- Plugin Navigation -->
	

<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>



<div class="clear"></div>	<!-- End -->
<?php endif; ?>
 
Última edición:
?? parte de la plantilla? ehms? pega aqui como te está quedando el index.php según las modificaciones que hicistes, epro hazlo entre los tags [*code][*/code] sin los *

ponlo así y ya te irá

Insertar CODE, HTML o PHP:
<?php 
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$latest_videos = new WP_query(); $latest_videos->query('showposts=5&cat='.$option['video'].'&paged='.$paged); ?><?php if ($latest_videos->have_posts()) : ?><h1 class="header_1">Ultimas Peliculas<ul id="more_in">	<li class="rssimg"><a rel="nofollow" href="<?php print get_category_feed_link($option['video']); ?>">RSS</a></li>	<li><a rel="nofollow" href="<?php print get_category_link($option['video']); ?>">Ver todas las peliculas <?php print get_cat_name($option['video']); ?> &raquo;</a></li></ul></h1><ul id="latest_videos"><?php global $wp_query; $wp_query->in_the_loop = true; ?><?php while ($latest_videos->have_posts()) : $latest_videos->the_post(); ?>	<li>		<div class="thumb">

</div>		
<div class="entry">	<h2><a rel="nofollow" href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>	<div class="inside">	<ul>		<li><b><?php the_time('d M y'); ?> at <?php the_time('G:i'); ?></b></li>		<?php if(function_exists('the_views')) { print '<li class="view"><b>'; the_views(); print '</b> Vistas</li>'; } ?>		<li class="comment"><a rel="nofollow" href="<?php comments_link(); ?>"><?php comments_number('0 Comentarios', '1 Comentario', '% Comentarios'); ?></a></li><p>		<?php if(function_exists('the_ratings')) { print '<li class="rate">'; the_ratings(); print '</li>'; } ?></p>	</ul>	<?php the_excerpt(); ?>	<div class="clear"></div>	</div>	<div class="author">	<?php echo get_avatar(get_the_author_email(), '30'); ?>	Publicada por <?php the_author_posts_link(); ?>.	<?php the_tags('<div class="tags">Etiquetada con: ', ', ', '</div>'); ?>	</div>	</div><div class="clear"></div>			</li><?php endwhile; ?></ul><a rel="nofollow" href="<?php print get_category_link($option['video']); ?>" class="browse"><?php print get_cat_name($option['video']); ?> &raquo;</a><div class="clear"></div>
<!-- Plugin Navigation -->
	

<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>



<div class="clear"></div>	<!-- End -->
<?php endif; ?>


ERES UN GENIO AMIGO!

te agradesco muchisisisisisimo enserio, me haz salvado :congrats:

un dia tenemos que tomarnos unas frias con unas viejas a cada lado si señor!
 
Atrás
Arriba