I use custom permalink structure:
/%tag%/%postname%/
and it is not working. I get url – http://mydomain.com/%tag%/post/. So there is no tag name, just %tag%. If i place %category% instead ot %tag%, everithing is ok.
Can somebody solve this problem?
I use custom permalink structure:
/%tag%/%postname%/
and it is not working. I get url – http://mydomain.com/%tag%/post/. So there is no tag name, just %tag%. If i place %category% instead ot %tag%, everithing is ok.
Can somebody solve this problem?
You must be logged in to post a comment.
@Atari asked for a solution.. People who do not have one should not butt in!
I have the same issue. All other %category% %postname% %post_id% etc. resolve fine, but %tag% remains %tag% in the final permalink!
I think it is a bug. I came across a patch which was for an older version. I did not try it yet ( I do not know how to use it either 😛 ) because I am using the latest version (3.0.4 I think).. but the problem is still there!
I do not want to start the url with %tag% but I need it down the URL. The point is that it should work.. regardless of how I use it!
@Atari if you find a solution please do share it 🙂
here is the patch I found.. I would appreciate anyone telling me how to use it too 🙂
I got the following code to work in WP 3.0.1 and WP 3.1 RC 2, but with an important difference. Before 3.1, the tag structure is explicitly defined as
%tag%
, but in 3.1 this becomes%post_tag%
. So my code handles both situations. It adds a hook toget_permalink()
and inserts a tag if needed.