最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

url rewriting - Problem building an url with argument

programmeradmin2浏览0评论

I have tried to build an url using a parameter, and it depends on the element the user clicks.

I have used the method add_query_arg( 'id', $id, '' ), and the href value of the anchor looks ok, but when I click it, wp redirects me to the url example, but the url looks like example/?id=1. Is this the expected behaviour? I don't know why is writing the slash character before the args.

发布评论

评论列表(0)

  1. 暂无评论