{"id":5730490,"date":"2015-01-30T03:15:30","date_gmt":"2015-01-30T03:15:30","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/permalink-62\/"},"modified":"2016-08-22T15:58:49","modified_gmt":"2016-08-22T15:58:49","slug":"permalink-62","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/permalink-62\/","title":{"rendered":"Permalink"},"content":{"rendered":"<p>Hi<\/p>\n<p>i have a small issue with the permalinks of Gris Products.<\/p>\n<p>For the moment my permalink for any product is :<\/p>\n<p>www.mysite.com\/product\/myproduct<\/p>\n<p>but i would like it to be :<\/p>\n<p>www.mysite.com\/mycategory\/myproduct<\/p>\n<p>how can i change &#8220;\/product\/&#8221; to the product actual category <\/p>\n<p>for exemple say i have a product named &#8220;chicken&#8221; created in category &#8220;animals&#8221;, how can i change the permalink to be :<\/p>\n<p>www.mysite.com\/animals\/chicken<\/p>\n<p>i have found the rewrite rule on line 93 of grid_products.php<br \/>\n<code>&#039;rewrite&#039; =&gt; array( &#039;slug&#039; =&gt; &#039;product&#039;, &#039;with_front&#039; =&gt; true ),<\/code><br \/>\nbut i just cant figure out how to change it so does what i want :\/<\/p>\n<p>Any Ideas ?<\/p>\n<p>Thanks<\/p>\n<p>https:\/\/wordpress.org\/plugins\/grid-products\/<\/p>\n","protected":false},"template":"","class_list":["post-5730490","topic","type-topic","status-closed","hentry","topic-tag-permalink"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5730490","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\/5730490\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=5730490"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}