Buenas.
Despues de leer varios temas del foro y no encontrar solucion posteo mi problema haber si alguien me puede ayudar un poco porque despues de pasarme horas probando diferentes cosas todo sigue igual :-/
Tengo una plantilla instalada donde en el index de la web tengo un pequeño apartado donde me muestra las ultimas entradas del blog. Esto funciona de manera correcta.
El problema con la paginacion esta en la seccion blog. Se ven correctamente los botones de "entradas anteriores" y "entradas siguientes" y cuando pulso sobre "entradas anteriores" en la barra de direccion esta correcto y me muestra .../page/2/ pero sigo viendo las ultimas entradas.
Pues no se como solucionar este problema. Dejo el codigo de archive.php donde creo que esta el problema, lineas 1,2,3 y las 34,35,36
lineas 1,2,3,
< ?php get_header();
$my_query = new WP_Query('meta_key=slider&meta_value=true&meta_compare=!=');
? >
lineas 34,35,36
< div id="right" >
< ?php
if($my_query- >have_posts()) : while($my_query- >have_posts()) : $my_query- >the_post();
? >
Si alguien puede ayudarme con el problema estare muy agradecido.gracias.
Os dejo el codigo completo de archive.php
< ?php get_header
();
$my_query =
new WP_Query
('meta_key=slider&meta_value=true&meta_compare=!=');
? >
< div id=
"highlight" class=
"clearfloat" >
< ?php
$post =
$posts[0];
// Hack. Set $post so that the_date() works. ? >
< ?php
/* If this is a category archive */ if (is_category
()) { ? >
< h1
class=
"select" >< ?php single_cat_title
(); ? >< /h1 >
< ?php
/* If this is a tag archive */ } elseif( is_tag
() ) { ? >
< h1
class=
"select" >Posts Tagged ‘< ?php single_tag_title
(); ? >’< /h1 >
< ?php
/* If this is a daily archive */ } elseif (is_day
()) { ? >
< h1
class=
"select" >Archive
for < ?php the_time
('F jS, Y'); ? >< /h1 >
< ?php
/* If this is a monthly archive */ } elseif (is_month
()) { ? >
< h1
class=
"select" >Archive
for < ?php the_time
('F, Y'); ? >< /h1 >
< ?php
/* If this is a yearly archive */ } elseif (is_year
()) { ? >
< h1
class=
"select" >Archive
for < ?php the_time
('Y'); ? >< /h1 >
< ?php
/* If this is an author archive */ } elseif (is_author
()) { ? >
< h1
class=
"select" >Author Archive< /h1 >
< ?php
/* If this is a paged archive */ } elseif (isset($_GET['paged']) && !
empty($_GET['paged'])) { ? >
< h1
class=
"select" >Blog Archives< /h1 >
< ?php
} ? >
< /div >< !--
#highlight -- >
< /div >< !--
#header -- >
< div id=
"content" class=
"with_sidebar clearfloat" >
< div id=
"slider" >
< ?php
require_once(TEMPLATEPATH .
'/sidebar.php');
? >
< div id=
"right" >
< ?php
if($my_query- >have_posts
()) :
while($my_query- >have_posts
()) :
$my_query- >the_post
();
? >
< div
class=
"entry clearfloat" >
< h3
class=
"select" ><a>
" >< ?php the_title(); ? ></a>< /h3 >
< div class="post-meta
" >Posted in: < ?php the_category(",
"); ? > by < ?php the_author_meta("user_nicename
"); ? > on < ?php the_time('F j, Y'); ? > | <a>" >
< ?php comments_number
('0',
'1',
'%'); ? >
Comments
</a>
< /div >
< ?php
if(get_post_meta
($post- >ID,
"image",
$single =
true) !=
"") {
? >
<img />/thumb.php?src=< ?php
echo get_post_meta
($post- >ID,
"image",
$single =
true); ? >&w=
250&h=
250&zc=1
" alt="" class="align_left
"/ >
< ?php
}
? >
< ?php the_excerpt(); ? >
<a>" >Read More</a>
< /div >
< ?php
endwhile;
endif; ? >
< /div >< !--
#slides -- >
< div
class=
"navigation clear" >
< div
class=
"alignleft" >< ?php next_posts_link
('« Older Entries') ? >< /div >
< div
class=
"alignright" >< ?php previous_posts_link
('Newer Entries »') ? >< /div >
< /div >
< div id=
"content_footer" >< /div >
< /div >< !--
#content -- >
< /div >< !--
#wrapper -- >
< /div >
< ?php get_footer
(); ? >