monkeytreecreative
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Custom Theme only showing index.phpIn case anyone is interested, I simply uninstalled WP and then tried again. For some reason it worked.
I hate computers.
Hi @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
In reply to: [Filter Everything — WordPress & WooCommerce Filters] Plugin Not WorkingAhaha! That’s done the trick!
Brilliant. Thanks for your help and superb support!
*****
Forum: Plugins
In reply to: [Filter Everything — WordPress & WooCommerce Filters] Plugin Not WorkingSomething 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
In reply to: [Filter Everything — WordPress & WooCommerce Filters] Plugin Not WorkingThanks 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.