imfromio
Forum Replies Created
-
Forum: Hacks
In reply to: pre_get_posts doesn't work with pretty permalinks anymoreThe patch worked for me as well. Fantastic response – thanks!
Forum: Hacks
In reply to: pre_get_posts doesn't work with pretty permalinks anymoreThanks Otto but that did not solve my problem either. Still not see any posts on the catgeory 263 page. I will look into my permalinks and see if that may have something to do with it.
Forum: Hacks
In reply to: pre_get_posts doesn't work with pretty permalinks anymoreI am having a similar problem after the upgrade to 3.8. I have a certain category of posts (id=263) that I keep separate from the others. In my functions.php file I have this code:
function tcm_pre_get_posts( $query ) { if ( is_admin() || is_author() || is_search() || ! $query->is_main_query() ) return; if ( !is_category( 263 ) ) { $query->set( 'cat', -263 ); return; } else { $query->set( 'meta_key', '_thumbnail_id' ); $query->set( 'orderby', 'meta_value' ); $query->set( 'orderby', 'date' ); return; } } add_action( 'pre_get_posts', 'tcm_pre_get_posts');The code still works to keep id=263 items out of the main posts page, but the page that is supposed to show id=263 posts no longer returns any posts. This code worked fine before the update to WP 3.8. Has something been updated with the pre_get_posts function?
Forum: Plugins
In reply to: [Easy Modal] Easy modal plugin is breaking my wysiwyg editorI have a similar problem. The wysiwyg editor works okay in Text mode but shows nothing when switching to Visual mode. The problem appeared after I installed the Easy Modal plugin and the editor works fine if I disable this plugin.
Forum: Plugins
In reply to: [Simplr Registration Form Plus+] Trouble getting Moderation to workJust wanted to chime in and say I’m looking for this solution as well. Like the others, I am using version 2.2.3 and have turned on moderation and set it to manual. New users receive their registration emails immediately after registering.
I don’t know if this makes a difference, but I am using this plugin on a multisite. Everything else works well excerpt for moderation.
Thanks!
Forum: Plugins
In reply to: [HW Image Widget] Unable to add text after updateHello,
I know this has been marked resolved, but I just downloaded and installed the plugin and cannot add text to the text box. All other functionality works great. I am using WP 3.5.2, plugin version 2.3.1 and Chrome Version 28.0.1500.71.
Thanks for the great plugin and hopefully there is a fix for this.
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Problem indexing "&" characterJust a couple small fixes to the “keep ampersands” code above (duplicate function names and commas instead of semi colons):
add_filter('relevanssi_remove_punctuation', 'fixampersands1', 9); function fixampersands1($a) { $a = str_replace('&', 'ZZZZZZZZZZ', $a); return $a; } add_filter('relevanssi_remove_punctuation', 'fixampersands2', 11); function fixampersands2($a) { $a = str_replace('ZZZZZZZZZZ', '&', $a); return $a; }Forum: Plugins
In reply to: [WooCommerce] Remove taxes from cart total during checkoutI was able to solve this using a combination of two sources. I’ll list them here for others searching for something similar.
From WooCommerce tech support I got this suggestion:
if ( !is_admin() ) { // breaks backend if called without this check add_action( 'init', 'aacer_woocommerce_customer_tax_exempt' ); function aacer_woocommerce_customer_tax_exempt() { global $woocommerce; if ( is_user_logged_in() ) { $current_user = wp_get_current_user(); $tax_exempt = get_user_meta( $current_user->ID, 'aacer_tax_exempt', true ); $woocommerce->customer->set_is_vat_exempt( $tax_exempt ); } } }I added the is_admin check since it was causing an error when in the backend.
The second is from a recent entry in stackoverflow:
http://stackoverflow.com/questions/16867447/add-tax-exempt-form-on-checkout-in-woocommerceForum: Plugins
In reply to: [BuddyPress Group Tags] SOLUCE : Fatal error: on line 159 : bp-group-tags.phpI can confirm the error upon activation and the above fix worked. Running buddypress 1.7 btw.
Forum: Plugins
In reply to: [WooCommerce] Shipping Automatically set?You rock, Coen. I needed this, too and it works perfectly. Thanks!
Forum: Plugins
In reply to: [Contact Form 7 Modules] Hidden fields not working in WordPress 3.5Thanks Jan. Will do.
Forum: Plugins
In reply to: [Contact Form 7 Modules] Hidden fields not working in WordPress 3.5This is not resolved. I am using WordPress 3.5 and the plugin version 1.3.2. This is the code in my form:
[hidden hidden-226 “post_url”]And this is what is in my message body:
<a href="[hidden-226]">[hidden-226]</a>I have the HTML content box checked.
When I receive the email it only shows this:
[post_url]Can you help with this?
Forum: Plugins
In reply to: [Contact Form 7] HTML5 input types?I’ve seen those old threads too and agree that it would be great if HTML5 input types were added to this fine plugin.
kina60,
I’m trying to do the same thing. How did you solve it?
Thanks!
Forum: Plugins
In reply to: [WooCommerce] Do Not Allo PO BoxesThanks! That code works. But I realized that it is checking the Post Code instead of the street address where most customers would put the PO Box, so I edited it as so:
add_action(‘woocommerce_after_checkout_validation’, ‘deny_pobox_postcode’);function deny_pobox_postcode( $posted ) { global $woocommerce; $postcode = ( isset( $posted['shipping_address_1'] ) ) ? $posted['shipping_address_1'] : $posted['billing_address_1']; $postcode = strtolower(str_replace( ' ', '', $postcode )); if ( strstr( $postcode, 'pobox' ) ) { $woocommerce->add_error( "Sorry, we cannot ship to PO BOX addresses." ); } }And it’s working fine now.