Skip to main content
9 events
when toggle format what by license comment
Dec 5, 2018 at 10:31 vote accept sot
Dec 5, 2018 at 0:51 answer added Tom J Nowell timeline score: 0
Dec 5, 2018 at 0:44 comment added Tom J Nowell That can be done without any of this, but keep in mind that too many posts and the page will never finish loading
Dec 4, 2018 at 21:45 comment added sot @TomJNowell I wanna use the posts_per_page to -1 to print all the products of this brand.
Dec 4, 2018 at 17:33 comment added Tom J Nowell If you're on a taxonomy archive for the pwb-brand already then why are you creating a custom query and loop? Is this because you wanted to add posts_per_page set to -1 but instead of modifying the main query, you replaced it, leading to this problem? Or modify the post types fetched? Is there a particular reason you didn't ask about the original problem instead? This looks like you're asking for a solution to a problem with a solution to a problem, an XY problem
S Dec 4, 2018 at 15:37 history suggested honk31 CC BY-SA 4.0
code cleanup
Dec 4, 2018 at 14:42 comment added honk31 so you are on a taxonomy archive page, lets say, url/pwb-brand/pwb-brand-x, correct? than the default wordpress query should handle the query by itself..? if you need to rund your own query, consider using get_queried_object() to get the query_vars. speaking of query vars, you registered your custom taxonomy to poplulate query vars, correct..?
Dec 4, 2018 at 14:38 review Suggested edits
S Dec 4, 2018 at 15:37
Dec 4, 2018 at 14:27 history asked sot CC BY-SA 4.0