I have a Archive page for my blog that initially loads titles for posts 1-25, but the user can change the displayed post titles by clicking links.
I'd like to shorten the code and use the same function to initial load of titles as well as for each clicked link by using a variable.
The initial loading of titles would call the function and pas on the starting index value of "1", while the links would pass on other starting index values such as "26" and "51" (or "1" to reset to the first 25 posts).
Call Script from Link
1-25 |
26-50 |
51-75