• Resolved OrbitCarrot

    (@orbitcarrot)


    Hello,

    We’re trying to get the custom post type grid
    to have the newest posts at the top, at oldest at the bottom.

    The ordering doesn’t seem to be working, whether the query order is ascending or descending the posts always stay in the same order – furthermore no matter what we set the orderby to the posts never change order either.

    We were originally using 2.0.15 but as it wasn’t working we upgraded to 2.0.18 – and just now to 2.0.20 but still no luck?

    Any ideas why ordering isn’t working?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author PickPlugins

    (@pickplugins)

    Thanks for your post.

    have you installed any cache plugin, please try deactivating the cache plugin first and then refresh the grid page.

    Let me know the update.

    Regards

    Thread Starter OrbitCarrot

    (@orbitcarrot)

    We have no caching plugin i’m afraid.

    • This reply was modified 7 years, 5 months ago by OrbitCarrot.
    Plugin Author PickPlugins

    (@pickplugins)

    I just tested the plugin all are works fine here,

    if you want to display newest post top please set, as following on the screenshot

    View post on imgur.com

    If its still not work please deactivate others plugin one by and see the result.

    if possible please go our forum https://www.pickplugins.com/questions/ we may help you by checking your dashboard.

    Regards

    Thread Starter OrbitCarrot

    (@orbitcarrot)

    That’s what we have done, and just tried
    deactivating plugins with no luck.

    Going to create a dev environment of the site and then I will be in touch ??

    Plugin Author PickPlugins

    (@pickplugins)

    I will be waiting for your update.

    Reards

    Thread Starter OrbitCarrot

    (@orbitcarrot)

    We’ve figured out the cause, it is this line in the theme’s functions which seems to be conflicting with the plugin:

    add_filter(‘posts_orderby’, ‘group_by_post_type’, 10, 2);

    Now we know the issue we can solve ourselves, thanks anyway ??

    Plugin Author PickPlugins

    (@pickplugins)

    Glad to see you found it.

    All the best.

    Regards

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Ordering not working?’ is closed to new replies.