Why i can’t get custom fields value or post ID via Ajax?
Because they’re 2 different requests, and the post doesn’t carry over to the AJAX request from the initial load. Nothing is remembered between page loads, and once the page is generated, nothing persists on the server. It’s a clean slate every time, so why would it remember the post variable? When you request the page, … Read more