Timeline for Pretty paged permalinks in custom post type loop
Current License: CC BY-SA 2.5
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 16, 2011 at 22:29 | comment | added | John P Bloch |
I added a bit of code that would use paginate_links and should get the 'active' page working.
|
|
Feb 16, 2011 at 22:28 | history | edited | John P Bloch | CC BY-SA 2.5 |
added 701 characters in body
|
Feb 16, 2011 at 22:20 | comment | added | onetrickpony | fixed by passing the current parameter from my loop function. I guess it has something to do with the global variable mess... | |
Feb 16, 2011 at 22:00 | comment | added | onetrickpony |
replacing get_pagenum_link(1) with get_permalink() fixes the links, but I still get the 1st page as active, regardless of what page I'm actually on
|
|
Feb 16, 2011 at 21:51 | comment | added | onetrickpony |
I tried the example here: codex.wordpress.org/Function_Reference/paginate_links (changed page/paged with tpage), and I get links like .../tpage/2/tpage/2 , and even if I change the page manually the current page is not seen as active...
|
|
Feb 16, 2011 at 21:22 | comment | added | John P Bloch |
have you had a look at paginate_links() ? I wrote about it on my blog here: jbl.me/2h
|
|
Feb 16, 2011 at 21:17 | vote | accept | onetrickpony | ||
Feb 16, 2011 at 21:17 | comment | added | onetrickpony |
nice, it works :) the only thing is that I need to make my own paging function, because wp_page_navi checks for page . thanks
|
|
Feb 16, 2011 at 20:55 | history | answered | John P Bloch | CC BY-SA 2.5 |