WordPress uses a taxonomic system you choose with a mix of the Settings page and how you organize your template hierarchy. To my knowledge there is no out of the box query url functionality in the core system.
Comment on PSA on privuhcy
NotSteve_@piefed.ca 2 days ago
Everything after the ? can be safely removed
This is usually true but but not always. There's often times when a URL query like that is used to choose the page to load. I believe wordpress does this
funkless_eck@sh.itjust.works 2 days ago
SomethingBurger@jlai.lu 2 days ago
There is.
?s=
for a search, and you can combine it with other parameters such as date or taxonomy terms.funkless_eck@sh.itjust.works 1 day ago
ah, you are right. I take it back.
brown567@sh.itjust.works 2 days ago
Sometimes I’ll post a picture straight from a duckduckgo search, and it doesn’t work without the stuff after the ?
(I’m also not sure how long the url is valid for, so I try not to do this too often)
kungen@feddit.nu 2 days ago
Only on “I have really bad SEO” kinds of blogs. Query strings have been considered a negative thing for many many years.
lime@feddit.nu 2 days ago
whuh? querystrings are integral to things like pagination. they are by no means a negative thing.
criss_cross@lemmy.world 2 days ago
It’s really weird how SEO snake oil salesmen have broken the web.
The “no query parameter” rule is such a dogma to the cult that your normal tooling for pages has to go through some weird ass hoops so that it can show up instead as a slug in the URL.
I hate SEO and SEO peddlers
NikkiDimes@lemmy.world 2 days ago
Pagination query parameters can just as easily be in url parameters as the querystring
keegomatic@lemmy.world 2 days ago
Pagination query params can be in the URL params, but that’s not normal at all. They’re pretty much always use query params, and it’s very reasonable to do so. Filtering, search, and pagination all typically go in query params.
lime@feddit.nu 2 days ago
that’s very hard to make idiomatic, and if it’s in the querystring it’s easier to change manually because you can annotate each entry more easily.
webhead@lemmy.world 1 day ago
Most systems these days do rewrites (like Apache mod_rewrite) to keep the query parameters out of the URL. Even for pagination. It’s not necessarily on by default though because they don’t know what environment you’re in so you need to do things to enable it (like copy a .htaccess file and enable it in settings).
LwL@lemmy.world 1 day ago
Youtube has the video ID as a query parameter, to use the most obvious example…
tias@discuss.tchncs.de 2 days ago
Not everybody cares for SEO BS