The simplest web-comics navigation could work just as the WordPress default post navigation. It would just show links to the previous and to the next comic. However, webcomics often have additional navigation links to the first, last, current or latest comic. Sometimes a random link is added. Most webcomics have a similar setup, owing to the scarcity of choice in themes and plugins, but also because that makes sense. Another usual setting is that comics episodes show up in reverse chronology, latest episode first. That is the default WordPress blog post structure as well, but you might want to change that.
Retrieve the first and last post
Anyway. To design a navigation bar for comics or webcomics in WordPress, you can build on existing variables, such as
$next. Assuming you have a custom post type “comic” in function.php, this code would retrieve the first and last comic custom post. Fine if you have only one story, it still needs improvement to sort comics by categories and enable series.
Leave a Comment
Your email address will not be published. Required fields are marked *