Replies: 0
I am new to WordPress and working on ajax request but unfortunately it is returning 0 so please help me to figure it out.
My folder structure is bit different, it means i am not firing ajax using functions.php file, however i have another folder TradePartners at the root folder which contains js/css folders and files further.
Here is my folder structure –
https://gyazo.com/3ea064a2b0774123843b553878f6b458
Here is TradePartners folder structure –
https://gyazo.com/ca7eb28fabe5df1df42592e3a1b920a1
And here is the js folder file –
https://gyazo.com/372c090a2d16334b3e835f2b23e34d39
Js file code –
https://gyazo.com/e57024d9b4c2a8a1d1922083a408b97d
So above js code sends ajax request –
https://gyazo.com/4c6428da5bf700e15dffe46d7620b59b
But unfortunately i get 0 in return. And now i send you my php code which is at trade.partners.ajax.php which is inside TradePartners folder also – https://gyazo.com/6fba8ff371abd1a9b9de414bd3b8b59a
- This topic was modified 11 minutes ago by Vipin Saini.
- This topic was modified 10 minutes ago by Vipin Saini.
- This topic was modified 9 minutes ago by Vipin Saini.
- This topic was modified 8 minutes ago by Vipin Saini.
- This topic was modified 6 minutes ago by Vipin Saini.