CodeMonkey613
Forum Replies Created
-
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Arrrgh… help, please!Awesome, that helped a lot, thanks! Turns out that because I was using the query variable $search, pods was automatically using that to query the post_title, resulting in a SQL statement of “product_gender like ‘%male%’ AND post_title like ‘%male%'”. So I was getting 0 results because there is no point at which gender AND title both have the keyword.
So I just needed to change the variable from $search to $keywords so that pods would stop writing the $where statement automatically.
I also notice pods handles “post_status IN (‘publish’)” by itself, so I was needlessly adding that a second time.
Thanks so much! Took 4 hours but can finally relax lol ??
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Arrrgh… help, please!Hi pglewis, this case it doesn’t seem to help adding “meta_value”. It no longer throws the error, but it returns 0 results. Could it be because the field is a “Relationship / Simple (custom defined list)”?
I’ve got it filtering the “post_title” using keywords correctly. But it won’t recognize the contents of this “product_gender” field.
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Arrrgh… help, please!Hi pglewis, thank you for the quick response. I tried ABS() before and couldn’t get it working. Upon your suggestion, I tried CAST() and got an error. But with minor modification I got it working:
CAST(product_price.meta_value AS DECIMAL)
Do you maybe have suggestion for my “second problem” too? Thanks.
Hmm, interesting. I looked at “ws_menu_editor” and each occurrence of the domain has a s: variable with the count of the string/url length. So if I don’t search/replace these domain matches in “ws_menu_editor”, and I just copy/paste it in the new database, and then I open “Admin Menu Editor” – will that update all the links with new domain automatically?
I’m not changing any links myself, all I ever use is the hide and order feature.
schwipps, that’s not how you use wp_enqueue_style. It doesn’t output the URL, it outputs the enter <link> tag. Don’t forget to add wp_head() in your theme’s <head></head> section.