• Resolved gladwda

    (@gladwda)


    Hello,

    I’m doing up a website at the moment and had to throw in pagination. Was a new one on me so I’m strugglin with something.
    Link:
    https://my-apartments.com/properties/young-street-flat-1/

    On this page all items use a particular “properties template”. On the right there is an include statement to include a rightside.php.
    In the right side I have a function to call posts from a particular category “properties”.

    When I click on each one, they link to the particular property page. Which in turn refreshes the rightside.php bit on the right and forces it back to Page 1. So if I am on page 2 and click on a property. The refresh makes it Page 1 again. Which is awful.

    How can I resolve this? I’ve been struggling with it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter gladwda

    (@gladwda)

    Still struggling :/ I mean is there a way for the page to save the position its in for refresh? Or an if statement that might solve it?

    [No bumping. If it’s that urgent, consider hiring someone.]

    Thread Starter gladwda

    (@gladwda)

    I’m told I need to do this:
    Set a variable based on the main page ( page1, page2, page3 , whatever )… Modify your links on the “right side include”, to capture the variable of the current page, then when they click on the links on the right side, and it reload the main page, query the variable to see what page needs to be loaded…

    But I have no idea how?

    Thread Starter gladwda

    (@gladwda)

    Worked it out! Direct link after clicking the page, then clicking the pagination to the right place. Replace the link. Yeooooo!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Pagination – page refreshes and jumps to first page’ is closed to new replies.