After I create a brand new varaint, a brand new merchandise will probably be in wp_posts
desk and a brand new row in wp_terms
desk.
Sadly, the brand new merchandise has the identical URL in wp_posts
desk.
What I need to achive, for instance, if there’s a product with this URL:
http://mysite.hu/merchandise/ac-power-apple-16-5v-3-65a-60w--a1184-mc461z-a
and there’s a variant, named attribute worth
then the consumer ought to find a way entry this variant from
http://mysite.hu/merchandise/ac-power-apple-16-5v-3-65a-60w--a1184-mc461z-a-attribute-value
, so the postfix must be: -attribute-value
.
I’ve tried some plugins, however I actually have no idea, the way to code it. I imply, ought to I add one thing to .htaccess
, or it’s only a new add_rewrite_rule
entry?