I'm a self-taught programmer with a very little experience in WordPress programming. I'm using a post permalink structure in this way:
/
I want to have the possibility to optionally have URLs with two "parameters", "routes", "deepth-levels" like this:
/
With APACHE's mod_rewrite I know I can "convert" a URL like: .php?name=john-doe&color=light-blue
in some like: /
But, in WordPress, how can I do this without messing all the other URLs and routing process-flow? My goal is read the GET params name
and color
in the functions.php
file so I can make some code with that.
EDIT:
I think that a mod_rewrite rule for "converting" / accepting URLs like this /?name=john&color=light-blue
in something like this /
would do the trick! Using add_rewrite_url()
Thanks for reading.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745218253a4617124.html
评论列表(0条)