Skip to content

Tag: wordpress

wpdb query gives back a wrong result

I’ve written some code in my PHP snippet which is on my WordPress page and the wpdb query gives me always a wrong result. In WordPress In SQL phpmyadmin displayed 3 which is the correct result for that query What did I do wrong? May you help me in someway? Answer The reason why you’re getting 1 as…

Multiple Toggles In A Post Loop

I’ve created a simple toggle to reveal and close a food menu. However as this is in a WordPress Loop only the first one works. I’m guessing because as the page builds itself out there then become multiple ID’s. However I can’t find anyway to tweak the JQuery / JS to not use ID’s.…