Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to paginate wordpress page + need help debuging + need help with POST/GET requests
    text
    copied!<p>This is the page, its a <strong>wordpress</strong> powered site:</p> <p><a href="http://bit.ly/9oJXWV" rel="nofollow noreferrer">http://bit.ly/9oJXWV</a></p> <p>You select some value, it makes POST to same page and based on value you selected it makes a list pages.</p> <p>Now before you jump into my code i just want to say that im a newbie and that my main problem here were database queries so i didnt focus on other small stuff(like bunch if's at start inline css and stuff like that).</p> <p>So this is my template:</p> <p><a href="http://pastebin.com/HQvMq3Db" rel="nofollow noreferrer">http://pastebin.com/HQvMq3Db</a></p> <p>This is a function from functions.php which im using in template:</p> <p><a href="http://pastebin.com/fWKqqzQv" rel="nofollow noreferrer">http://pastebin.com/fWKqqzQv</a></p> <p>This page works the way i want it and i just finnished putting all the code together but have one issue. Once i get that sorted out i will make the code a lot nicer... :)</p> <p>So the issue is that if you look at pages that are listed once you make a selection and submit, on a lot of them some values are missing even thought those values are there(open any page from that list which is missing some value and you can pretty much see the same stuff but now it display's all the data).</p> <p>So that is the part i need help with debugging. I really have no idea how to tackle this.</p> <p>Second part of this question is simple: how do i paginate this page? Any link, tip, tutorial would be good.</p> <p>Also one more thing, how can i have links for example like this:</p> <p>.../hostels/?grad=Beograd</p> <p>and when user opens up that page he does not have to click to select the town, it would already list all pages from "Beograd"? I guess that is GET request right? Can i do something like that with POST? O_o Not sure what to do here, like i said im newbie.</p> <p>Thanks for reading, looking forward to answers and comments.</p> <p>Cheers!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload