Skip to main content
7 events
when toggle format what by license comment
Sep 5, 2013 at 2:33 comment added kristina childs no, i was just trying to modify it to work for custom post types
Sep 4, 2013 at 17:14 comment added kaiser @kristinachilds Haven't you coded the snippet in the question?
Sep 4, 2013 at 16:54 comment added kristina childs I don't know what you mean by resulting SQL string. I just put in the php and the database spits stuff out :) Can you give me an example?
Sep 4, 2013 at 13:32 comment added kaiser @kristinachilds I already left some steps that are needed in the answer, like showing us the complete resulting SQL string. Please do so. Then we can talk further. So far it's guessing on my side.
Sep 4, 2013 at 5:15 comment added kristina childs Perhaps I should clarify. It IS searching just the product post type, however it is searching the main content as well as titles, which results in less-than-ideal results when someone is searching for a specific product. I want it to search title field only.
Sep 4, 2013 at 5:11 comment added kristina childs That's what if($_GET['post_type'] = 'product' ) is supposed to be... I don't see post_type = post anywhere. Am I missing something here? The post type for WooCommerce products is product. I'm not sure what you mean by final SQL string.
Sep 4, 2013 at 1:41 history answered kaiser CC BY-SA 3.0