12lolwut12
Junior Member
- May 26, 2010
- 135
- 9
Hello,
I have a website which streams episodes of anime series. On every page of an episode there is a 'Next Episode' and 'Previous Episode' button. Both of those work. However they are tied to the date when the post is published.
For example:
Episode 1: Posted on Sat 25 Dec 14:12
Episode 2: Posted on Sun 26 Dec 13:53
Episode 3: Posted on Sat 25 Dec 16:13
This results in Episode 1 linking the 'Next Episode' button to Episode 3. When it should obviously link to Episode 2.
I need the buttons to work sort out the order of the episodes by Title, and not by Date.
My current code for the next button looks like this
I have a website which streams episodes of anime series. On every page of an episode there is a 'Next Episode' and 'Previous Episode' button. Both of those work. However they are tied to the date when the post is published.
For example:
Episode 1: Posted on Sat 25 Dec 14:12
Episode 2: Posted on Sun 26 Dec 13:53
Episode 3: Posted on Sat 25 Dec 16:13
This results in Episode 1 linking the 'Next Episode' button to Episode 3. When it should obviously link to Episode 2.
I need the buttons to work sort out the order of the episodes by Title, and not by Date.
My current code for the next button looks like this
Code:
<?php next_post_link('%link', 'Next Episode', TRUE, '3'); ?>
Last edited: