lulalala
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Globally filtering posts by Custom TaxonomyI have a similar situation, and I have a country texonomy. I have tried
add_filter( 'request'.... This does filter out posts on the front page/search, but it does not for example filter out ‘recent posts’ widgets. Hope this might help, and I want to know if there is a way to cover widgets also. So…BUMP THREAD!.function alter_the_query( $request ) { $dummy_query = new WP_Query(); $dummy_query->parse_query( $request ); $request['tax_query'] = array( array( 'taxonomy' => 'country', 'field' => 'slug', 'terms' => 'US' ) ); return $request; } add_filter( 'request', 'alter_the_query' );And also since I have comment form at each post in index, I had to remove the use of
$sg_subscribe->checkbox_shown = true.I also has to change the html to this to avoid duplicate IDs.
<input type="checkbox" name="subscribe" id="subscribe<?php echo get_the_ID() ?>"...Hope this might be of help to you.
I removed custom forms but it does not make a difference.
I also tried a fresh build of WP. It works fine, except that the when the opt-in option is checked, people are still activated automatically without receiving the opt-in email.
Forum: Themes and Templates
In reply to: Fatal error: Call to undefined functionI don’t have SVN with me and I can’t find the code for Toolbox 1.0. My site is broken by the update so where can I find a downgrade to this?