I would like to create custom post URL from Custom Post Types variable. I considered a way to do that:
In Permalinks settings, I see there are some default tags you can choose to compound URL from (%year%, %post_id%, %postname% etc.). I was thinking about creating custom tag you can include(e. g. %mytag%) or rewriting existing one. That tag should be automatically generated based on variables from CPT.
So the final tag should be:
%mytag% = $variable1 . '_' . $variable2
Is this possible to do? Maybe there is much easier way to do that, so please let me know how would you solve this issue.
Thank you very much for your answers!