plugins – Create Dynamic Slug Based on Meta Value of Page

Question

I am creating a custom post for example universities

Now while creating universities I will suppose I will add a University having the name RMIT in that post I will add a custom meta key country AU(Australia)

I want to access this single university’s details using URL www.mywebsite.com/au/rmit

and want to get a list of all universities of Australia using RUL www.mywebsite.com/au/

this will list all universities in Australia

So I am adding the country name in the university post as a meta key let me know how can generate this type of URL
you can see in this image slug that I want
meta key for country

because I am not able to generate dynamic URL for post based on meta key values.

0
Ashish Singh 2 weeks 2023-03-15T10:16:39-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse