can someone help me writing rewrite queries.
I have a post type called chef-list, and it has a meta key chef-type
meta values for chef-type are ‘restaurant’, ‘host’, etc…
What I wanted to happen is that when someone visits a single post for chef-list:
(eg: Chef 1)
And it’s meta value is ‘host’, it will go to entertainment-host/chef-1 instead in chef-list/chef-1.
Thanks in advance.
Read more here:: Custom post type single post to url rewrite base on meta query