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