• Resolved SiRa-wp

    (@sira-wp)


    Hi there,
    I am trying to display a box on my index page that contains four images in its loop, displaying one at a time, navigating with some navigation link. Meanwhile, I have managed to extract the images I want and the next/previous_post_link is showing up, but it does not lead to the next short version of the page defined by the new wp query. It leads to the full page itself. Posts_nav_link is not working. Any ideas how to make the post_link stick to the defined query and lead to the next shortversion? Help would be greatly appreciated.

    https://pastebin.com/1BUtnyfY

Viewing 1 replies (of 1 total)
  • Thread Starter SiRa-wp

    (@sira-wp)

    Meanwhile,

    I have found a solution in using a jQuery based slider.
    But I’d like to use it a couple of times and have no idea how to change this code into a function?
    https://pastebin.com/xYSSQRSv

    In addition to that, whenever the page is scrolled down, it jumps back to the top as soon as the slider moves on. Any ideas why that is and how to stop it?

Viewing 1 replies (of 1 total)
  • The topic ‘Next post link in custom loop’ is closed to new replies.