{"id":10530124,"date":"2018-07-26T13:29:20","date_gmt":"2018-07-26T13:29:20","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/products-per-page-11\/"},"modified":"2018-07-26T13:29:20","modified_gmt":"2018-07-26T13:29:20","slug":"products-per-page-11","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/products-per-page-11\/","title":{"rendered":"products per page"},"content":{"rendered":"<p>Hello, how to change woocommerce products per page from 9 to 12?<\/p>\n<p>Tried:<\/p>\n<pre><code>add_filter( &#039;loop_shop_per_page&#039;, &#039;new_loop_shop_per_page&#039;, 20 );\nfunction new_loop_shop_per_page( $cols ) {\n\/\/ $cols contains the current number of products per page based on the value stored on Options -&gt; Reading\n\/\/ Return the number of products you wanna show per page.\n$cols = 9;\nreturn $cols;\n}<\/code><\/pre>\n<p> into functions.php but doesnt work.<\/p>\n","protected":false},"template":"","class_list":["post-10530124","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10530124","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10530124\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=10530124"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}