cam5
Forum Replies Created
-
I used a few lines in the
single-product-reviews.php
woocommerce template to unhook jetpack on only product pages:$jp = new Jetpack_Comments; remove_action('comment_form_before', array($jp, 'comment_form_before')); remove_action('comment_form_after', array($jp, 'comment_form_after')); comment_form( apply_filters( 'woocommerce_product_review_comment_form_args', $comment_form ) );
Just calling the
Jetpack_Comments
class and removing those actions before thecomment_form()
was enough to selectively deactivate ’em.Note: your
single-product-reviews.php
might be in your themes/woocommerce/
folder, or in the/plugins/woocommerce/templates/
path.Hey Kevin!
I was running a wordpress install locally on MAMP, and received this error. After banging my head on a wall trying wordpress-central solutions, I went to the MAMP landing page, in preparation to restart the server software, and saw the same error.
This tells me that it’s likely server related. If you can comfortably restart the server, give that a go – I bet it would fix it!
If you figured out a different solution, I’d be very curious to find out what you did!
Forum: Fixing WordPress
In reply to: nav_menu doesn't appear in homepage@thermatk – Thanks for the post & the explanation. You saved me!
If I were to paraphrase, could someone confirm?
The pre_get_posts hook is called before every query – even nav queries – and so, asking a nav menu to include custom post types is nonsensical, and results in an error.
Forum: Fixing WordPress
In reply to: Possible Bug with Tumblr ImporterSame thing goin’ down for me right now.
This worked in the meantime. It spits out XML that you can put in the wordpress importer.