[英]Make a post redirect url in php
I am using a search function in my wordpress site which is working fine. 我在我的wordpress网站上使用的搜索功能运行良好。 I want to generate a url which I can type in the browser and it gives me results.
我想生成一个可以在浏览器中键入的URL,它可以给我结果。 Like a bookmark url.
就像书签网址一样。 Right now i am not getting any url with search queries in it like soething
现在我没有像平整一样获得任何带有搜索查询的网址
http://www.example.com/posts/?venues=london
I want something like the above url. 我想要类似上面的网址。 My form code is
我的表单代码是
<form name="search-fomr" action="<?php echo site_url().'/seminars-list';?>" method="post">
Appreciate any help 感谢任何帮助
change the post type post to get. 更改要获取的帖子类型。 Try this and set input name = venues
试试这个并设置输入名称=场地
<form name="search-fomr" action="www.example.com/posts/" method="get">
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.