Title: Posts found2: error
Last modified: October 10, 2024

---

# Posts found2: error

 *  Resolved [daveyh002](https://wordpress.org/support/users/daveyh002/)
 * (@daveyh002)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/posts-found2-error/)
 * Just receiving this error now – plugin is latest version (2.8.2)
 * ![](https://wordpress.org/f064d78f-2ad6-43b6-b23b-b1f4360ca38a)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fposts-found2-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Thread Starter [daveyh002](https://wordpress.org/support/users/daveyh002/)
 * (@daveyh002)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/posts-found2-error/#post-18065528)
 * Have found that there’s a conflict with the Code Snippets plugin.
   These two snippets
   causing the issue:
    1. Change AJAX filter ordering from default ascending (A-Z, oldest to newest) to
       descending (Z-A, newest to oldest)
       add_filter(‘tc_caf_filter_posts_order’, ‘
       tc_modify_ajax_search_query’, 10, 1);function tc_modify_ajax_search_query($search_parameters){
       $default_order = “desc”;`// Modify the search parameters $search_parameters['
       order'] = $default_order; // Return the modified search parameters return $search_parameters;`
    2. Change AJAX filter ordering from default ‘title’ to ‘date’
       add_filter(‘tc_caf_filter_posts_order_by’,‘
       tc_modify_ajax_search_query_2’, 10, 1);function tc_modify_ajax_search_query_2(
       $search_parameters){$default_order_by = “date”;`// Modify the search parameters
       $search_parameters['orderby'] = $default_order_by; // Return the modified search
       parameters return $search_parameters;`}

Viewing 1 replies (of 1 total)

The topic ‘Posts found2: error’ is closed to new replies.

 * ![](https://ps.w.org/category-ajax-filter/assets/icon-256x256.png?rev=2410607)
 * [Category AJAX Filter – Advanced Filter for Posts & Custom Post Types](https://wordpress.org/plugins/category-ajax-filter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/category-ajax-filter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/category-ajax-filter/)
 * [Active Topics](https://wordpress.org/support/plugin/category-ajax-filter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/category-ajax-filter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/category-ajax-filter/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [daveyh002](https://wordpress.org/support/users/daveyh002/)
 * Last activity: [1 year, 7 months ago](https://wordpress.org/support/topic/posts-found2-error/#post-18065528)
 * Status: resolved