• Resolved donsenilo1968

    (@donsenilo1968)


    Hi

    There are some possibilities to re-order Posts in the Admin but this not what I need. I want give Visitors the possibility to sort the Posts in different orders (like A-Z or Date). I couldn’t find anything.

    Does someone know a Plugin or Widget ?

Viewing 5 replies - 1 through 5 (of 5 total)
  • 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.

    Thread Starter donsenilo1968

    (@donsenilo1968)

    I tried this plugin already and it’s exactly not what I need.

    Moderator bcworkz

    (@bcworkz)

    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.

    Thread Starter donsenilo1968

    (@donsenilo1968)

    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.

    Moderator bcworkz

    (@bcworkz)

    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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Possibility for Visitors to change the Post-Order ?’ is closed to new replies.