• Resolved stueynet

    (@stueynet)


    Is there a good way to disable the plugin from implementing ordering on particular cases using WP_Query? I have a few custom queries where I want to use a different ordering type (alphabetical for example) and not follow the plugin’s ordering. However it seems to affect all ordering even in custom queries. Let me know if you have any ideas.

    https://wordpress.org/plugins/simple-custom-post-order/

Viewing 2 replies - 1 through 2 (of 2 total)
  • streamcoding

    (@streamcoding)

    There is a good way and it’s pretty simple. Just add this command right before calling WP_Query():

    remove_all_filters(‘pre_get_posts’);

    Thread Starter stueynet

    (@stueynet)

    Thanks streamcoding. This worked perfectly!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Disabling the ordering in specific cases’ is closed to new replies.