[wp-hackers] Problems with pagination of taxonomy-{tax}.php page template ...

Diana K dianakac at gmail.com
Tue May 1 01:07:44 UTC 2012


I think you need to inform how many posts/page with "posts_per_page", so
wp_page_navi can figure out the pagination.

Maye this heslp: http://pastebin.com/KJB8nXM7 is an example using ajax for
load extra posts, but the wp_pagenavi can reuse the query as well. There`s
no really need to inform the taxo in query, as the filename will do this,
but I do needed to inform how many posts.



2012/4/30 wpmidia lab <wpmidia at gmail.com>

> @*Diana*, I'm using this scheme:
>
> http://wordpress.stackexchange.com/questions/49141/rewriting-a-custom-post-type-permalink-with-taxonomy-term
>
> but I'm getting 404 error when I go to page 2 ... =(
>
> *@Otto*, my taxonomy-categoria.php: http://pastebin.com/rE97sCLd
> page-lab.php: http://pastebin.com/Lc764Kiw
>
> I need fix the permalink structure to accept this:
>
> http://site.com/my-post-type-slug/my-tax-term/page/2 ... etc.. etc....
>
> Thanks!
>
> Drika
>
> 2012/4/30 Diana K <dianakac at gmail.com>
>
> > Oh, I never tried this before.
> >
> > Have you tried to visit Permalink panel just for refresh? I need to this
> > once and again :S
> >
> >
> > 2012/4/30 Otto <otto at ottodestruct.com>
> >
> > > We would need to see the taxonomy-categoria.php and the page-lab.php
> > > to know what exactly it is that your issue is here.
> > >
> > > -Otto
> > >
> > >
> > > On Mon, Apr 30, 2012 at 1:44 PM, wpmidia lab <wpmidia at gmail.com>
> wrote:
> > > > Please, someone help me?
> > > >
> > > > I have this code:  http://pastebin.com/Cuup4NHw creating Custom Post
> > > Type
> > > > and taxonomy.
> > > >
> > > > Because I used the "lab/%categoria%" in permalink structure, i have
> > used
> > > a
> > > > page template to my Custom Post Type posts list. (page-lab.php)
> > > >
> > > > But my problem is in *taxonomy-categoria.php* template.... When I run
> > > > page/2/, I got 404 page error.
> > > >
> > > > My permalink structure is: *http://my-site.com.br/lab/categoria* ..
> > and
> > > > this works
> > > >
> > > > But *http://my-site.com.br/lab/categoria/page/2* doesn't work =(
> > > >
> > > > Please, what can I do to fix this?
> > > >
> > > >
> > > > Thanks in advance!
> > > >
> > > >
> > > > *PS: Sorry my english.*
> > > >
> > > >
> > > > --
> > > > *Míriam de Paula *
> > > > *Twitter:* @miriamdepaula
> > > >
> > > >
> > > > *desenvolvimento web*
> > > > http://wpmidia.com.br
> > > > twitter: @wpmidia
> > > >
> > > > *WordPress Brasil no Facebook:*
> > > > http://www.facebook.com/groups/wordpress.brasil
> > > >
> > > > *OpenCart Brasil no Facebook:*
> > > > http://www.facebook.com/groups/opencart.brasil/
> > > > _______________________________________________
> > > > wp-hackers mailing list
> > > > wp-hackers at lists.automattic.com
> > > > http://lists.automattic.com/mailman/listinfo/wp-hackers
> > > _______________________________________________
> > > wp-hackers mailing list
> > > wp-hackers at lists.automattic.com
> > > http://lists.automattic.com/mailman/listinfo/wp-hackers
> > >
> > _______________________________________________
> > wp-hackers mailing list
> > wp-hackers at lists.automattic.com
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
> >
>
>
>
> --
> *Míriam de Paula *
> *Twitter:* @miriamdepaula
>
>
> *desenvolvimento web*
> http://wpmidia.com.br
> twitter: @wpmidia
>
> *WordPress Brasil no Facebook:*
> http://www.facebook.com/groups/wordpress.brasil
>
> *OpenCart Brasil no Facebook:*
> http://www.facebook.com/groups/opencart.brasil/
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list