Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1263428
    riwaro
    Participant

    Hello,
    I would like to sort my posts by title. All posts start with the date (german).

    01.01.2017
    04.01.2017

    I found the following code in the forum, which I wrote into function.php (child).

    Add_action ( ‘pre_get_posts’, ‘category_sort_by_title’);
    Function category_sort_by_title ($ query) {
    $ Query-> set ( ‘orderby’, ‘title’);
    $ Query-> set ( ‘order’, ‘ASC’);
    }

    How can I make it, that is not only sorted after the first number, but by the whole date.

    Thank you and best regards

    Thomas

    #1263446
    Rad
    Moderator

    Hi there,

    Thanks for writing in.

    What do you mean by sorting or not sorting after the first number?

    Thanks!

    #1263521
    riwaro
    Participant

    Hello,

    Current is sorted in this way.
    01.01.2016
    03.04.2016
    05.11.2016
    07.03.2016
    09.01.2016

    It is sorted according to the first number (01, 03, 05, 07, 09). In Germany, the first number is the day.

    It should be sorted.
    Example:

    01.01.2016
    09.01.2016
    07.03.2016
    03.04.2016
    05.11.2016

    Thank you very much

    Thomas

    #1263763
    Rad
    Moderator

    Hi there,

    Thanks, you mean to change the date format right? What if 03.04.2016 is 04.03.2016 and you’re only seeing it wrong because of the expected format for Germany. Would you mind providing your site’s URL and login credentials? I can check it in Admin since posts listing has the date column and sorting option.

    Thanks!

    #1263780
    riwaro
    Participant

    Hello,
    I just want to change the order of the posts. I found the following plugin. But does not work.

    Post Types Order

    Thomas

    #1263788
    riwaro
    Participant

    Hello,

    i found a solution.

    Simple Custom Post Order

    Thank you Thomas

    #1264049
    Christopher
    Moderator

    Glad to hear that you were able to fix this.

    #1264171
    riwaro
    Participant

    Hello,
    I must unfortunately annoy again.
    I have installed the Simple Custom Postorder plugin. So I can sort in the dashboard posts by Drag & Drop.
    But It’s crazy….. The first line is o.k. But the second row on the website dispalays no longer the dates from left to right. From the second row the dates will be displayed from right to left.

    You can see it here:

    http://example.riwaro.de/blog/

    Greetings Thomas

    #1264173
    riwaro
    Participant

    sorry, this is the url.

    http://beispiel.riwaro.de/blog/

    #1264226
    Christian
    Moderator

    It sounds like you might be having an issue with a third party plugin or script. Regretfully, we cannot provide support for third party plugins or scripts as our support policy in the sidebar states due to the fact that there is simply no way to account for all of the potential variables at play when using another developer’s plugin or script. Because of this, any questions you have regarding setup, integration, or troubleshooting any piece of functionality that is not native to X will need to be directed to the original developer.

    Thank you for your understanding.

    #1264240
    riwaro
    Participant

    o.k.

    Thank you

    #1264277
    Christian
    Moderator

    You’re welcome.

  • <script> jQuery(function($){ $("#no-reply-1263428 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>