Title: monkeytreecreative's Replies | WordPress.org

---

# monkeytreecreative

  [  ](https://wordpress.org/support/users/monkeytreecreative/)

 *   [Profile](https://wordpress.org/support/users/monkeytreecreative/)
 *   [Topics Started](https://wordpress.org/support/users/monkeytreecreative/topics/)
 *   [Replies Created](https://wordpress.org/support/users/monkeytreecreative/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/monkeytreecreative/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/monkeytreecreative/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/monkeytreecreative/engagements/)
 *   [Favorites](https://wordpress.org/support/users/monkeytreecreative/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Custom Theme only showing index.php](https://wordpress.org/support/topic/custom-theme-only-showing-index-php/)
 *  Thread Starter [monkeytreecreative](https://wordpress.org/support/users/monkeytreecreative/)
 * (@monkeytreecreative)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/custom-theme-only-showing-index-php/#post-16310068)
 * In case anyone is interested, I simply uninstalled WP and then tried again. For
   some reason it worked.
 * I hate computers.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Filter Everything — WordPress & WooCommerce Filters] Specific Filter Not Working With Custom Orderby](https://wordpress.org/support/topic/specific-filter-not-working-with-custom-orderby/)
 *  Thread Starter [monkeytreecreative](https://wordpress.org/support/users/monkeytreecreative/)
 * (@monkeytreecreative)
 * [4 years ago](https://wordpress.org/support/topic/specific-filter-not-working-with-custom-orderby/#post-15561127)
 * Hi [@stepasyuk](https://wordpress.org/support/users/stepasyuk/),
 * Thanks again for the swift response. Have used the code below, which works fine.
   Once again, thanks for your support. Brilliant.
 *     ```
       do_action( 'wpc_filtered_query_end', $query );
       function wpb_custom_query( $query ) {
           if( $query->is_main_query() && ! is_admin() && $query->is_archive() ) {
           	$query->set( 'meta_key', 'price' );
               $query->set( 'orderby', 'meta_value_num' );
               $query->set( 'order', 'ASC' );
           }
       }
       add_action( 'wpc_filtered_query_end', 'wpb_custom_query' );
       ```
   
 * Cheers!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Filter Everything — WordPress & WooCommerce Filters] Plugin Not Working](https://wordpress.org/support/topic/plugin-not-working-1119/)
 *  Thread Starter [monkeytreecreative](https://wordpress.org/support/users/monkeytreecreative/)
 * (@monkeytreecreative)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/plugin-not-working-1119/#post-15551897)
 * Ahaha! That’s done the trick!
 * Brilliant. Thanks for your help and superb support!
 * *****
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Filter Everything — WordPress & WooCommerce Filters] Plugin Not Working](https://wordpress.org/support/topic/plugin-not-working-1119/)
 *  Thread Starter [monkeytreecreative](https://wordpress.org/support/users/monkeytreecreative/)
 * (@monkeytreecreative)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/plugin-not-working-1119/#post-15551844)
 * Something is clearly working because when I use the filter, a line of code is
   accurately depicting the number of posts that should be shown (for example):
 * `<span class="wpc-filters-found-posts">3</span>`
 * However, all posts are still showing.
 * I presume I just haven’t put the “have posts” statement in the wrong place?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Filter Everything — WordPress & WooCommerce Filters] Plugin Not Working](https://wordpress.org/support/topic/plugin-not-working-1119/)
 *  Thread Starter [monkeytreecreative](https://wordpress.org/support/users/monkeytreecreative/)
 * (@monkeytreecreative)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/plugin-not-working-1119/#post-15551817)
 * Thanks for your swift response.
 * The code is implemented on archive-brokerage.php, which is the **archive** page
   for the Custom Post Type “Brokerage”.
 * And, sorry, I’m not sure what you mean by the “debug message instead of Filters
   widget”. I don’t see any errors or messaged coming up on console.
 * Thanks again.

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