adding story navigation

8 years ago | John Crandall (Member)

Not sure if this is the right place to add this (as a new member of a forum, i'm never sure where to add stuff) but I was wondering if anyone can help me with a navigation problem?

My end goal for the http://www.stuckstation.com is to have individual posts with buttons that say Start from the beginning, Previous Chapter, Previous Post, Next Post, Next Chapter, Latest Post.

But all my previous efforts using the php next post thing hasn't worked.

Is there an easy solution? I'm hoping the answer is a good solid maybe.

Thanks for your time.

http://www.stuckstation.com - the free science fiction, action-adventure humor-hyphen-thingy

Read responses...

Responses

  1. Alexander.Hollins (Member)

    Posted 8 years ago

    the site appears to be wordpress,not sure. If it is,i can copy and paste you my code for next previous post. as far as start from begining, next chapter, previous chapter, those will have to be manual buttons. Maybe come up with the code, then save it on draft post, updating the chapter numbers when you get to new chapters, to copy and past into each post.

  2. Chris Poirier (Moderator)

    Posted 8 years ago

    Please add specific URLs, too.

  3. Senna Black (Member)

    Posted 8 years ago

    You say the PHP stuff hasn't worked, so I assume you've been through the instructions in this post: http://codex.wordpress.org/Next_and_Previous_Links

    I am not at all au fait with PHP, but I did a lot of tweaking on my next/prev links myself, so like Alexander Hollins I can offer you my wordpress code if that is helpful. I have "Start from the Beginning", Prev. Post and Next Post links on my pages.

    That said, I suspect it is the next chapter/previous chapter bit which is causing you problems? I am not really sure how you would do that. I have a category for each chapter, but I can't think how you could induce Wordpress to skip to the first post in the next category, because AFAIK categories don't have a "sequence" (unless it's just alphabetical sequence in which case numbering the categories/chapters might work)? The whole "Latest Post" thing seems to me to be much more complicated than it should be, too.

    Can't you just direct people back to the ToC if they want to jump a chapter or go to the latest post? :)

    I hope this was helpful. :)

  4. Alexander.Hollins (Member)

    Posted 8 years ago

    ellipsis, you COULD have the links go to the categories set up as chapters, but again, no way to auto numerate the next chapter, youd have to put in the category number manually each time.

  5. Senna Black (Member)

    Posted 8 years ago

    Yes, Alexander, that was where I thought the problem might lie.

    OP, I didn't look at this in depth, but it might work? http://wordpress.org/support/topic/category-to-category-navigation as long as you have created your categories/chapters in sequence and you don't have any irrelevant categories in between them...

  6. John Crandall (Member)

    Posted 8 years ago

    Ellipsis i'd love that code if you have it. (the code with the start from beginning)

    The thing that's been the hardest so far is linking to the latest post (especially since the latest post keeps changing)

    http://www.stuckstation.com - the free science fiction, action-adventure humor-hyphen-thingy
  7. Chris Poirier (Moderator)

    Posted 8 years ago

    You can use wp_query() to get the current article, then output pieces from it.

  8. Alexander.Hollins (Member)

    Posted 8 years ago

    John, I solved it by just having the first post and latest post in my sidebar. So i have a previous next in the blog, and a first last in the sidebar.

    That said.... Comicpress does that, and its a wordpress theme, so I'm sure the code is in comicpress. I'd just need to go hunt it down.

  9. Senna Black (Member)

    Posted 8 years ago

    John, the "Start from the Beginning" isn't a code! I mean, I'm sure a workaround exists if you want it to be dynamic, but my first post will never change, so it is literally,

    <a href="http://www.to-jovan.net/001-frontier-1/">Start from the beginning</a>

    Would that not work for you? Does your first post change regularly?

  10. John Crandall (Member)

    Posted 8 years ago

    No, it would work perfectly ... i just need some code to link to the latest post too. Otherwise it looks a little lopsided.

    Ideally i'd like something like at my favorite webcomic. you know jpgs with arrows etc.

    http://www.stuckstation.com - the free science fiction, action-adventure humor-hyphen-thingy
  11. Alexander.Hollins (Member)

    Posted 8 years ago

    The newest button generally links in those cases back to just the domain, since most webcomics have no landing page.

Reply

You must log in to post.