admin管理员组文章数量:1122832
I need to use a permalink to a product page in woocommerce like "?p=%post-id" The settings do not seem to work because I try this I get a link like "?p=15/name_of_product" While playing around I found out that the if the function wp_force_plain_post_permalink() in wp-includes/link-template.php returns true, I get the permalink I want (more or less) It will return: ?post_type=product&p=15 (in case of a product) ?page_id=2 (in case of a page) However I guess changing link-template.php should not be done because it would be overwritten in case of an update? What is the best way to get what I want and if possible only a link with "?p=15"
本文标签: woocommerce permalinks like quotppostidquot
版权声明:本文标题:woocommerce permalinks like "?p=%post_id%" 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736304983a1932428.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论