[wp-hackers] Posts 2 Posts: Pagination for connected posts on single post template
J.D. Grimes
jdg at codesymphony.co
Thu Jun 27 23:57:33 UTC 2013
Does it work if you add the page number as a GET parameter?
For Example, http://localhost/artist/artist-name/?page=2
-J.D. Grimes
On Jun 27, 2013, at 7:37 PM, Md Mahmudur Rahman <iammahmudur at gmail.com> wrote:
> Hi
>
> I have tried that as well. But no luck.
>
> The pagination links are part of a secondary loop on a single page
> template. And I can see that get_query_var('paged') always returning 1. As
> a result the pagination links are not working.
>
> Is it possible to paginate through a secondary loop on a *single page
> template*? For example, on a single page template can I have a URL like
> below:
>
> http://localhost/artist/artist-name/page/2
>
> Here is the link for:
>
> single-artist.php <https://gist.github.com/iammahmudur/19d944872cfac1c285cf>
> loop-artist.php <https://gist.github.com/iammahmudur/8f38979f143cdc668ff9>
>
> Pagination code on functions.php<https://gist.github.com/iammahmudur/5881276>
>
> Many thanks.
>
> On Thu, Jun 27, 2013 at 11:38 PM, J.D. Grimes <jdg at codesymphony.co> wrote:
More information about the wp-hackers
mailing list