Support » Plugin: WP Order By » Order is not changing. Doing something wrong?

  • Hello!

    Just wanted to test if it is possible to use WP Order By to order posts by the recent comment date: hoping, that Last Modified Date might work.

    Unfortunately, I can’t get the plugin to work. Here the steps:
    – install and activate WP Order By 1.4.1.1 (WP 4.4.2)
    – Go to Posts, change Order By to, say, Random and click Save Changes
    – reload my Blog page, but the posts order is still ‘Date Created’
    – tried to change the WP Order-by General (Global) Settings, but they does not seems to work as well

    Am I doing something wrong, or I just don’t understand how this plugin works?

    Help, please! Thank you!

    https://wordpress.org/plugins/wp-order-by/

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author weiluri

    (@weiluri)

    Hello Valery,

    You understood correctly the functionality of the plugin.
    I can think of two things that might causing the plugin not to function as expected:
    1. Is the page you are trying to reorder is displaying Posts? maybe it is displaying other king of post types or pages?
    2. Do you have another active plugin that deals with ordering? it might collide with wp order by.
    If neither of the above is the case, you are welcome to provide me credentials of your admin and I’ll take a look.

    Regards,
    Uri

    P.s. sorry, but the plugin does not support ordering by the newest comment.

    Thread Starter Valery Kondakoff

    (@valery-kondakoff)

    Hello, Uri!

    Thanks for a prompt answer. I created a new admin user for you. Feel free to experiment with the installed plugins. The page, that I wanted to sort is http://rugby-forum.ru/wp2/home/ and it is displayed posts as far as I can understand.

    Is there a chance to see ‘Order by recent comment date’ in WP Order By? This is how I initially wanted to sort the posts page.

    Plugin Author weiluri

    (@weiluri)

    Hi Valery,
    You have to send me the user password for the admin user as well.
    you can send it to weiluri@gmail.com

    Thread Starter Valery Kondakoff

    (@valery-kondakoff)

    Oops, I was sure the password reset link will be sent in the auto-generated email from WordPress. Sorry, email sent.

    Plugin Author weiluri

    (@weiluri)

    Hi Valery,

    I looked at the admin and my assumption is that there is a collide with the ordering functionality of the page which is doing some manipulation on the displaying of the posts.
    You can try replacing this line in the plugin:
    add_action( ‘pre_get_posts’, ‘get_ordered_posts’ );
    with this:
    add_action( ‘pre_get_posts’, ‘get_ordered_posts’, 999999 );

    The file this line is located in is this one (there is only one place it appears in the file so you can search for it easily):
    \wp-content\plugins\wp-order-by\admin-options.php

    hope it will help

    Uri

    Thread Starter Valery Kondakoff

    (@valery-kondakoff)

    Thank you for looking into it! Will try your suggestion in a couple of hours and report back.

    Thread Starter Valery Kondakoff

    (@valery-kondakoff)

    Unfortunately, replacing

    add_action( ‘pre_get_posts’, ‘get_ordered_posts’ );
    with
    add_action( ‘pre_get_posts’, ‘get_ordered_posts’, 999999 );

    does not seems to work: posts order does not change. Can you, please, take a look at my site again?
    Thank you!

    Plugin Author weiluri

    (@weiluri)

    Hi Valery,
    I have to enter the code for that. It won’t help to enter the admin again. Sorry

    Thread Starter Valery Kondakoff

    (@valery-kondakoff)

    OK, don’t hesitate to contact me if you need my assistance while investigating this issue.

    Hello!

    I have the same problem: order don´t change.

    I have custom fields and want order by one of them “date”.

    My configuration is:
    Choose order
    By value of a custom field => fecha (the id of my custom field)
    What type of values this custom field contains: String values
    Order Direction: Ascending
    Do not exclude any.

    I don´t know whats is wrong.

    Thank you!

    Plugin Author weiluri

    (@weiluri)

    Id is usually a numeric value and not a string value. Did you try it?

    Yes, but don´t work. 🙁

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Order is not changing. Doing something wrong?’ is closed to new replies.