Timeline for Rewrite URL custom search query
Current License: CC BY-SA 4.0
28 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 9 at 4:07 | comment | added | Maseres | Yes, variables are empty, but I don't know why? I think could be the action of form! I don't know! this is the URL that gives me: midominio.com/coches-en-orihuela-alicante/bmw.html BUT NOT SHOW THE RESULTS, I think is the action form! | |
Feb 9 at 4:05 | history | edited | Maseres | CC BY-SA 4.0 |
added 157 characters in body
|
Feb 4 at 13:55 | comment | added | Sally CJ | That is not hard to fix, but have you thought about what would happen if the search keyword, categoria, provincia, or poblacion is empty? And what if they are all not specified? More specifically, what would the URL look like in those different cases? | |
Feb 3 at 18:01 | comment | added | Maseres | Not work for me... It redirects me, but it doesn't show me the results | |
Feb 1 at 12:24 | history | edited | Maseres | CC BY-SA 4.0 |
added 780 characters in body
|
Feb 1 at 12:17 | history | edited | Maseres | CC BY-SA 4.0 |
deleted 32 characters in body
|
Feb 1 at 12:14 | history | edited | Maseres | CC BY-SA 4.0 |
added 91 characters in body
|
Feb 1 at 12:12 | history | edited | Maseres | CC BY-SA 4.0 |
added 817 characters in body
|
Feb 1 at 8:01 | comment | added | Sally CJ | So, have you now got it working? If not, could you please answer all the questions I asked via my very first comment above? And please, write in English. 🙂 | |
Jan 30 at 19:23 | history | edited | Maseres | CC BY-SA 4.0 |
deleted 335 characters in body
|
Jan 30 at 19:23 | history | edited | Maseres | CC BY-SA 4.0 |
deleted 1089 characters in body
|
Jan 30 at 19:22 | history | edited | Maseres | CC BY-SA 4.0 |
added 2231 characters in body
|
Jan 30 at 2:12 | comment | added | Maseres | edited... I can do wp_redirect, but search results, not show results... page not found | |
Jan 30 at 1:00 | history | edited | Maseres | CC BY-SA 4.0 |
added 4 characters in body
|
Jan 30 at 0:58 | history | edited | Maseres | CC BY-SA 4.0 |
added 2 characters in body
|
Jan 30 at 0:58 | history | edited | Maseres | CC BY-SA 4.0 |
added 4 characters in body
|
Jan 30 at 0:56 | history | edited | Maseres | CC BY-SA 4.0 |
edited body
|
Jan 30 at 0:55 | history | edited | Maseres | CC BY-SA 4.0 |
deleted 184 characters in body
|
Jan 27 at 6:25 | history | edited | Maseres | CC BY-SA 4.0 |
added 4 characters in body
|
Jan 27 at 6:23 | history | edited | Maseres | CC BY-SA 4.0 |
added 2 characters in body
|
Jan 27 at 6:21 | history | edited | Maseres | CC BY-SA 4.0 |
added 2 characters in body
|
Jan 27 at 6:21 | history | edited | Maseres | CC BY-SA 4.0 |
edited body
|
Jan 27 at 6:21 | history | edited | Maseres | CC BY-SA 4.0 |
added 66 characters in body
|
Jan 27 at 6:17 | history | edited | Maseres | CC BY-SA 4.0 |
added 152 characters in body
|
Jan 27 at 2:09 | comment | added | Sally CJ |
But in general, you would need to add a custom rewrite rule which rewrites (or internally redirects) a URL like /search/<keyword>/<category>/<province>/<paged>/ to /?s=<keyword>&category=<category>&province=<province>&paged=<paged> . And actually, it should be paged=<page number> and not paged=<page ID> .
|
|
Jan 27 at 2:05 | comment | added | Sally CJ |
What is the URL-friendly structure you would like to have, and what's the code for your search form? And by "custom post field", did you mean this custom field or post meta, or is province a post type slug? Do you have any code which hooks on the pre_get_posts action or another hook? Please edit your post/question and add all that info.
|
|
S Jan 26 at 19:53 | review | First questions | |||
Feb 9 at 20:01 | |||||
S Jan 26 at 19:53 | history | asked | Maseres | CC BY-SA 4.0 |