Timeline for alternative to wp_link_pages() that only shows link to last page
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 11, 2013 at 12:55 | comment | added | ewanskie | uhm here, my index file (pastebin.com/sKNGhvPV), and my functions file (pastebin.com/jebJ6pE8) it won't show anything... if i tinker with the code though, it woud just show the default output of wp_list_pages... | |
Jun 6, 2013 at 14:57 | comment | added | s_ha_dum | 95% sure I tested this... exactly what did you do? | |
Jun 6, 2013 at 14:56 | comment | added | ewanskie | tried it,but nothing happened... :( | |
May 30, 2013 at 17:05 | comment | added | s_ha_dum |
Put the function definition in your theme's function.php and call it where you want the link to display, which is what I did on the last line. It will only work reliably inside a Loop, be aware.
|
|
May 30, 2013 at 17:03 | comment | added | ewanskie | sorry, but how do i add this to my theme..? ust new to using wordpress, or rather, new to making my own theme... | |
May 6, 2013 at 4:49 | history | answered | s_ha_dum | CC BY-SA 3.0 |