url rewriting - Problem building an url with argument

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

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.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745396067a4625883.html

相关推荐

  • url rewriting - Problem building an url with argument

    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

    8小时前
    40

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信