Timeline for Replacing global wp_query
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 6, 2012 at 16:34 | comment | added | TheDeadMedic |
I think this is verging off-topic from the original problem - I'd suggest posting a new question "Custom query not paginating" or similar, along with your WP_Query code.
|
|
Jul 6, 2012 at 16:14 | comment | added | Ty Morton | It's a manual query. I pass the region variable via the URL, use it to search a separate table that returns an array of countries in that region, and then use that array to build the WP query. | |
Jul 6, 2012 at 8:37 | comment | added | TheDeadMedic | Are you manually querying the items, or relying on the global query? | |
Jul 5, 2012 at 19:40 | comment | added | Ty Morton | Got a question: While the pagination works, the links to subsequent pages don't seem to. For example: morepositive.com/category/gallery/?region=US calls 6 pages, which is correct, but clicking on any of the subsequent numbers just takes me back to the same page. Ideas? | |
Jul 3, 2012 at 19:55 | vote | accept | Ty Morton | ||
Jul 3, 2012 at 19:55 | comment | added | Ty Morton | Hold the phone! I didn't implement it correctly the first try. It works like a charm! You are awesome! | |
Jul 3, 2012 at 19:44 | comment | added | Ty Morton | That didn't do it. In a query that only returned four posts, I had still had pagination for 27 pages worth, which is all of the posts on the site. Also, I agree with you about the plug-in, but that's not my call, and to be fair, it works. | |
Jul 3, 2012 at 17:26 | history | answered | TheDeadMedic | CC BY-SA 3.0 |