how use php query in AJAX jquery

You need to edit the PHP associated with the AJAX action call_post. If you want to return different data, you should pass a parameter in the request that you handle later; data:”action=call_post&template=custom&”+checked, Ideally, you could just return the data rendered from php with a flag data:”action=call_post&template=custom&format=html&”+checked, From a PHP perspective, you would find your parameters … Read more

Links in new menu don’t work

You have a script active that prevents normal behaviour of links if they have no target=”_blank” attribute on them. The original site has this attribute on the link to the blog, so that one works. The ‘new’ site doesn’t have it on the menu links, so those links are disabled. To fix this, go to … Read more

Submitting custom post from frontend,jQuery ajax, and custom validation – can’t find proper place to insert wp_insert_post()

You can achieve the goal through many ways. though the way you have selected is not an appropriate one but you can go with it also. just include the file wp-blog-header.php file (placed at the wordpress root) into validation.php above all other code. you can find all the wordpress related functions will work like a … Read more

wordpress ajax pagination

Is your “next” Button an HTML “a”-Element? Please add a little bit more of your code. How do you call your $.ajax – Method? Am I right that you call it sometings like this: $(“#elementid”).on(“click”, function() { $.ajax({….}); } When I am right and you use an a-Element. Add the following after the “click” method: … Read more