mlahens
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Customize "New Order" email template of WooCommerce@laura, that sounds frustrating. I just sort of picked this stuff up, and I think I’ve wrapped my head around “hooks”.
From what I understand, a “hook” is a way of attaching a code function into a given framework (in this case, the WooCommerce framework), without needing to edit their code base.
It’s like saying, “Hey WooCommerce, I want you to do this extra thing for me, but I don’t want you to change anything about yourself.”
In general, this is a good practice because as WooCommerce grows and updates, they won’t overwrite your changes, and if something breaks, it’s a bit easier to debug.
Before you get into writing any code, read the template structure article that IgniteWoo posted above. As I was trying to figure out how to make WooCommerce do what I wanted it to, I used these documents:
Learn how to add custom form fields to checkout – https://docs.woothemes.com/document/tutorial-customising-checkout-fields-using-actions-and-filters/Reference of all the hooks and filters you can glom onto –
https://docs.woothemes.com/document/hooks/I know this is a lot of information to throw at you, but hopefully this can get you going in the right direction.
Forum: Plugins
In reply to: [Google Forms] Have not tested with WordPress 3.9Since updating, I’m running into an issue where new pages are being redirected to a /wpgforms/ page.
Full disclosure, I’m using a heavily customized theme that I didn’t build that’s being used for my work. As a result, it’s difficult for me to provide a lot of information, since I can’t say with 100% certainty how this plugin is interacting with the theme.
In any case, it was working, but stopped working after I upgraded the plugin.
Let me know if you have any ideas, and I’d be happy to try and get more info for you.
Forum: Plugins
In reply to: [Google Forms] No redirect, form is not sentAlright, in speaking with our sys admin, there wasn’t a whole lot more information, but here goes.
So as I said our website is using a varnish cache, which was causing the POST to be cached. Our sys admin added POST methods as an exception to varnish. This way every time a post is sent, it goes directly to our web server as opposed to the cache.
Hope this helps.
Forum: Plugins
In reply to: [Google Forms] No redirect, form is not sentHi all,
We were experiencing a similar problem. We were using a varnish cache, and discovered that the POST was being sent to the cache as opposed to where it was supposed to go.
Our sys admin altered a setting (probably a redirect, but I don’t really know because my knowledge in this aspect is woefully limited), that made posts post to where they are supposed to.
I hope this isn’t too vague, but if so I can probably get a better description from our sys admin if the need arises.
Good luck!
Forum: Plugins
In reply to: [Theme My Login] Invalid key redirect for SubscribersUPDATE: My mistake, this is all user types, not just subscribers.
Forum: Plugins
In reply to: [Media Library Assistant] Cannot call multiple galleries per pageHuh. Cool.
I’ll give it a shot and see how it turns out.
Thank you again!
Forum: Plugins
In reply to: [Media Library Assistant] Cannot call multiple galleries per pageHi David,
Thank you so much for looking over my stuff. I’ve checked all of my category slugs, and everything appears to have been matched up (the teacher/teachers discrepancy was only in my first post). Even so, I’m still terrified that I’ve done something really dumb, like having a typo.
In any case I looked at the debug, but my ability to understand it is limited. Right off the bat I see that the beginning statement for the “not working” gallery is “mla_debug empty gallery”, while the working one does not include it (which makes sense).
In any case, here’s the debug for the working gallery call:
[mla_gallery post_parent="all" post_mime_type=application/pdf attachment_category=teachers,getting-started tax_operator=AND link=file orderby=title order=desc mla_debug=true]
Debug:
mla_debug $wp_filter[posts_where] = array ( 2147483647 => array ( 'MLAShortcodes::mla_shortcode_query_posts_where_filter' => array ( 'function' => 'MLAShortcodes::mla_shortcode_query_posts_where_filter', 'accepted_args' => 1, ), ), ) mla_debug $wp_filter[posts_orderby] = array ( 2147483647 => array ( 'MLAShortcodes::mla_shortcode_query_posts_orderby_filter' => array ( 'function' => 'MLAShortcodes::mla_shortcode_query_posts_orderby_filter', 'accepted_args' => 1, ), ), ) mla_debug WHERE filter = ' AND ( ( SELECT COUNT(1) FROM wp_term_relationships WHERE term_taxonomy_id IN (248,250) AND object_id = wp_posts.ID ) = 2 ) AND (wp_posts.post_mime_type = \'application/pdf\') AND wp_posts.post_type = \'attachment\' AND ((wp_posts.post_status = \'inherit\') OR (wp_posts.post_status = \'inherit\' AND (p2.post_status = \'inherit\')))' mla_debug modified WHERE filter = ' AND ( ( SELECT COUNT(1) FROM wp_term_relationships WHERE term_taxonomy_id IN (248,250) AND object_id = wp_posts.ID ) = 2 ) AND (wp_posts.post_mime_type = \'application/pdf\') AND wp_posts.post_type = \'attachment\' AND ((wp_posts.post_status = \'inherit\') OR (wp_posts.post_status = \'inherit\' AND (p2.post_status = \'inherit\')))' mla_debug ORDER BY filter, incoming = 'wp_posts.post_date DESC' Replacement ORDER BY clause = 'wp_posts.post_title DESC' mla_debug posts_clauses filter = array ( 'where' => ' AND ( ( SELECT COUNT(1) FROM wp_term_relationships WHERE term_taxonomy_id IN (248,250) AND object_id = wp_posts.ID ) = 2 ) AND (wp_posts.post_mime_type = \'application/pdf\') AND wp_posts.post_type = \'attachment\' AND ((wp_posts.post_status = \'inherit\') OR (wp_posts.post_status = \'inherit\' AND (p2.post_status = \'inherit\')))', 'groupby' => 'wp_posts.ID', 'join' => ' LEFT JOIN wp_posts AS p2 ON (wp_posts.post_parent = p2.ID) ', 'orderby' => 'wp_posts.post_title DESC', 'distinct' => '', 'fields' => 'wp_posts.*', 'limits' => '', ) mla_debug posts_clauses_request filter = array ( 'where' => ' AND ( ( SELECT COUNT(1) FROM wp_term_relationships WHERE term_taxonomy_id IN (248,250) AND object_id = wp_posts.ID ) = 2 ) AND (wp_posts.post_mime_type = \'application/pdf\') AND wp_posts.post_type = \'attachment\' AND ((wp_posts.post_status = \'inherit\') OR (wp_posts.post_status = \'inherit\' AND (p2.post_status = \'inherit\')))', 'groupby' => 'wp_posts.ID', 'join' => ' LEFT JOIN wp_posts AS p2 ON (wp_posts.post_parent = p2.ID) ', 'orderby' => 'wp_posts.post_title DESC', 'distinct' => '', 'fields' => 'wp_posts.*', 'limits' => '', ) mla_debug query = array ( 'tax_query' => array ( 0 => array ( 'taxonomy' => 'attachment_category', 'field' => 'slug', 'terms' => array ( 0 => 'teachers', 1 => 'getting-started', ), 'operator' => 'AND', ), ), 'post_type' => 'attachment', 'post_status' => 'inherit', 'post_mime_type' => 'application/pdf', 'nopaging' => true, 'ignore_sticky_posts' => true, 'no_found_rows' => true, ) mla_debug request = 'SELECT wp_posts.* FROM wp_posts LEFT JOIN wp_posts AS p2 ON (wp_posts.post_parent = p2.ID) WHERE 1=1 AND ( ( SELECT COUNT(1) FROM wp_term_relationships WHERE term_taxonomy_id IN (248,250) AND object_id = wp_posts.ID ) = 2 ) AND (wp_posts.post_mime_type = \'application/pdf\') AND wp_posts.post_type = \'attachment\' AND ((wp_posts.post_status = \'inherit\') OR (wp_posts.post_status = \'inherit\' AND (p2.post_status = \'inherit\'))) GROUP BY wp_posts.ID ORDER BY wp_posts.post_title DESC ' mla_debug query_vars = array ( 'tax_query' => array ( 0 => array ( 'taxonomy' => 'attachment_category', 'field' => 'slug', 'terms' => array ( 0 => 'teachers', 1 => 'getting-started', ), 'operator' => 'AND', ), ), 'post_type' => 'attachment', 'post_status' => 'inherit', 'post_mime_type' => 'application/pdf', 'nopaging' => true, 'ignore_sticky_posts' => true, 'no_found_rows' => true, 'error' => '', 'm' => 0, 'p' => 0, 'post_parent' => '', 'subpost' => '', 'subpost_id' => '', 'attachment' => '', 'attachment_id' => 0, 'name' => '', 'static' => '', 'pagename' => '', 'page_id' => 0, 'second' => '', 'minute' => '', 'hour' => '', 'day' => 0, 'monthnum' => 0, 'year' => 0, 'w' => 0, 'category_name' => '', 'tag' => '', 'cat' => '', 'tag_id' => '', 'author_name' => '', 'feed' => '', 'tb' => '', 'paged' => 0, 'comments_popup' => '', 'meta_key' => '', 'meta_value' => '', 'preview' => '', 's' => '', 'sentence' => '', 'fields' => '', 'menu_order' => '', 'category__in' => array ( ), 'category__not_in' => array ( ), 'category__and' => array ( ), 'post__in' => array ( ), 'post__not_in' => array ( ), 'tag__in' => array ( ), 'tag__not_in' => array ( ), 'tag__and' => array ( ), 'tag_slug__in' => array ( ), 'tag_slug__and' => array ( ), 'suppress_filters' => false, 'cache_results' => true, 'update_post_term_cache' => true, 'update_post_meta_cache' => true, 'posts_per_page' => 10, 'comments_per_page' => '50', 'taxonomy' => 'attachment_category', 'term' => 'teachers', 'order' => 'DESC', ) mla_debug post_count = 2 </blockquote> Code for the "not working" call: <code>[mla_gallery post_parent="all" post_mime_type=application/pdf attachment_category=teachers,fostering-engagement tax_operator=AND link=file orderby=title order=desc mla_debug=true]</code> Debug: <blockquote>mla_debug empty gallery, query = array ( 'post_parent' => 'all', 'post_mime_type' => 'application/pdf', 'attachment_category' => 'teachers,fostering-engagement', 'tax_operator' => 'AND', 'link' => 'file', 'orderby' => 'title', 'order' => 'desc', 'mla_debug' => 'true', ) mla_debug $wp_filter[posts_where] = array ( 2147483647 => array ( 'MLAShortcodes::mla_shortcode_query_posts_where_filter' => array ( 'function' => 'MLAShortcodes::mla_shortcode_query_posts_where_filter', 'accepted_args' => 1, ), ), ) mla_debug $wp_filter[posts_orderby] = array ( 2147483647 => array ( 'MLAShortcodes::mla_shortcode_query_posts_orderby_filter' => array ( 'function' => 'MLAShortcodes::mla_shortcode_query_posts_orderby_filter', 'accepted_args' => 1, ), ), ) mla_debug WHERE filter = ' AND ( ( SELECT COUNT(1) FROM wp_term_relationships WHERE term_taxonomy_id IN (248,251,256,257) AND object_id = wp_posts.ID ) = 4 ) AND (wp_posts.post_mime_type = \'application/pdf\') AND wp_posts.post_type = \'attachment\' AND ((wp_posts.post_status = \'inherit\') OR (wp_posts.post_status = \'inherit\' AND (p2.post_status = \'inherit\')))' mla_debug modified WHERE filter = ' AND ( ( SELECT COUNT(1) FROM wp_term_relationships WHERE term_taxonomy_id IN (248,251,256,257) AND object_id = wp_posts.ID ) = 4 ) AND (wp_posts.post_mime_type = \'application/pdf\') AND wp_posts.post_type = \'attachment\' AND ((wp_posts.post_status = \'inherit\') OR (wp_posts.post_status = \'inherit\' AND (p2.post_status = \'inherit\')))' mla_debug ORDER BY filter, incoming = 'wp_posts.post_date DESC' Replacement ORDER BY clause = 'wp_posts.post_title DESC' mla_debug posts_clauses filter = array ( 'where' => ' AND ( ( SELECT COUNT(1) FROM wp_term_relationships WHERE term_taxonomy_id IN (248,251,256,257) AND object_id = wp_posts.ID ) = 4 ) AND (wp_posts.post_mime_type = \'application/pdf\') AND wp_posts.post_type = \'attachment\' AND ((wp_posts.post_status = \'inherit\') OR (wp_posts.post_status = \'inherit\' AND (p2.post_status = \'inherit\')))', 'groupby' => 'wp_posts.ID', 'join' => ' LEFT JOIN wp_posts AS p2 ON (wp_posts.post_parent = p2.ID) ', 'orderby' => 'wp_posts.post_title DESC', 'distinct' => '', 'fields' => 'wp_posts.*', 'limits' => '', ) mla_debug posts_clauses_request filter = array ( 'where' => ' AND ( ( SELECT COUNT(1) FROM wp_term_relationships WHERE term_taxonomy_id IN (248,251,256,257) AND object_id = wp_posts.ID ) = 4 ) AND (wp_posts.post_mime_type = \'application/pdf\') AND wp_posts.post_type = \'attachment\' AND ((wp_posts.post_status = \'inherit\') OR (wp_posts.post_status = \'inherit\' AND (p2.post_status = \'inherit\')))', 'groupby' => 'wp_posts.ID', 'join' => ' LEFT JOIN wp_posts AS p2 ON (wp_posts.post_parent = p2.ID) ', 'orderby' => 'wp_posts.post_title DESC', 'distinct' => '', 'fields' => 'wp_posts.*', 'limits' => '', ) mla_debug query = array ( 'tax_query' => array ( 0 => array ( 'taxonomy' => 'attachment_category', 'field' => 'slug', 'terms' => array ( 0 => 'teachers', 1 => 'fostering-engagement', ), 'operator' => 'AND', ), ), 'post_type' => 'attachment', 'post_status' => 'inherit', 'post_mime_type' => 'application/pdf', 'nopaging' => true, 'ignore_sticky_posts' => true, 'no_found_rows' => true, ) mla_debug request = 'SELECT wp_posts.* FROM wp_posts LEFT JOIN wp_posts AS p2 ON (wp_posts.post_parent = p2.ID) WHERE 1=1 AND ( ( SELECT COUNT(1) FROM wp_term_relationships WHERE term_taxonomy_id IN (248,251,256,257) AND object_id = wp_posts.ID ) = 4 ) AND (wp_posts.post_mime_type = \'application/pdf\') AND wp_posts.post_type = \'attachment\' AND ((wp_posts.post_status = \'inherit\') OR (wp_posts.post_status = \'inherit\' AND (p2.post_status = \'inherit\'))) GROUP BY wp_posts.ID ORDER BY wp_posts.post_title DESC ' mla_debug query_vars = array ( 'tax_query' => array ( 0 => array ( 'taxonomy' => 'attachment_category', 'field' => 'slug', 'terms' => array ( 0 => 'teachers', 1 => 'fostering-engagement', ), 'operator' => 'AND', ), ), 'post_type' => 'attachment', 'post_status' => 'inherit', 'post_mime_type' => 'application/pdf', 'nopaging' => true, 'ignore_sticky_posts' => true, 'no_found_rows' => true, 'error' => '', 'm' => 0, 'p' => 0, 'post_parent' => '', 'subpost' => '', 'subpost_id' => '', 'attachment' => '', 'attachment_id' => 0, 'name' => '', 'static' => '', 'pagename' => '', 'page_id' => 0, 'second' => '', 'minute' => '', 'hour' => '', 'day' => 0, 'monthnum' => 0, 'year' => 0, 'w' => 0, 'category_name' => '', 'tag' => '', 'cat' => '', 'tag_id' => '', 'author_name' => '', 'feed' => '', 'tb' => '', 'paged' => 0, 'comments_popup' => '', 'meta_key' => '', 'meta_value' => '', 'preview' => '', 's' => '', 'sentence' => '', 'fields' => '', 'menu_order' => '', 'category__in' => array ( ), 'category__not_in' => array ( ), 'category__and' => array ( ), 'post__in' => array ( ), 'post__not_in' => array ( ), 'tag__in' => array ( ), 'tag__not_in' => array ( ), 'tag__and' => array ( ), 'tag_slug__in' => array ( ), 'tag_slug__and' => array ( ), 'suppress_filters' => false, 'cache_results' => true, 'update_post_term_cache' => true, 'update_post_meta_cache' => true, 'posts_per_page' => 10, 'comments_per_page' => '50', 'taxonomy' => 'attachment_category', 'term' => 'teachers', 'order' => 'DESC', ) mla_debug post_count = 0
[Please post log files between backticks or use the code button.]
There aren’t a whole lot of people I can turn to for guidance, so I appreciate your time quite thoroughly.
Thanks again.