Custom URL segment parameters for posts
Question
I need to add a custom parameter/segment to the post URL.
For example, when I have a post at example.com/post-name
, I need to add another segment like example.com/post-name/places
. After that, I need to add a dynamic segment like example.com/post-name/places/dynamic-value
.
I can’t use ?key=value
parameters, it needs to be segmented. I’ve tried to work with add_rewrite_rule()
, but it doesn’t seem to work.
How can I achieve something like that?
0
parameter, url-rewriting
8 years
2015-07-19T18:44:36-05:00
2015-07-19T18:44:36-05:00 0 Answers
82 views
0
Leave an answer