WordPress meta in permalink

I have a custom post type called patch. Every patch have a meta key version and the value of this meta is always unique. For example:

  • 1.0.0
  • 1.0.1
  • 1.5

I want to make special permalink structure so every patch could be accessible by this URL structure:


So www.site.ru/patch/1.0.1 would lead to specific patch post witch meta key version value equals 1.0.1.

How can I do so?

I guess there should be a way to somehow automaticlly transform %version% to a structure like index.php?p=*needed_patch_post_id*.

Read more here: WordPress meta in permalink

Leave a Reply

Your email address will not be published. Required fields are marked *