Yes, there are several plugins and widgets available that can provide visitors with the ability to sort posts in different orders on your website.
One popular option is the “Post Types Order” plugin, which allows you to define custom sort orders for posts. Visitors can then select their preferred sorting option from a dropdown or other user-friendly interface.
If you need any further assistance. Let me ask, I am a developer and will try to resolve any issue related to this query. Thanks.
I tried this plugin already and it’s exactly not what I need.
One can often alter the ordering of an archive query by adding an appropriate query string to the URL. For example:
example.com/blog/?orderby=title&order=ASC
Of course we cannot expect visitors to know how to do that for themselves, but you could create a simple form the adds the appropriate query string for them. The form would need a listener script be added for its “submit” event. Call preventDefault() on the event object, then assign the desired URL to window.location.href
Or you could try out a few other plugins from this search.
I couldn’t find any appropriate plugin but I tried your “?orderby=title&order=ASC
” and it works.
I created sub-menus with different individual links like “?orderby=title&order=ASC” or “?orderby=date&order=ASC”. It works so far. Take a look: https://aihaunted.com/ (click on “Sortierung”).
Thank you for your help.
Nice!
FWIW, it’s usually best to avoid relative links in WP. You will end up with links that are illogical like /kontakt/?orderby=date&order=DESC. In this particular case there’s no harm since the illogical query string has no impact on the results of the request. In other usage the result could be more detrimental. I don’t see a need to change anything here. In the future, consider carefully before implementing other relative links.