Load More Posts Button – AJAX

After a chat session between trunks (the OP) and I, here’s what we discerned the issue was. In success within the AJAX there was a chained series of instructions. .text().prev().before(); Once the button was added into a div, this presented itself as a problem because the new posts were appearing before the button, but the … Read more

Call a PHP Function with Multiple Parameters that is outside the AJAX Handler

Sorry for late reply. First allow POSTing from your WordPress to your game server (using Apache or PHP or whatever method). Then on your AJAX handler function, use wp_remote_post to POST your data to the Game Server. $request = wp_remote_post( ‘https://urltoyour/gameserver/voting/endpoint’, array( ‘body’ => $body, // array/json formatted voting data ) ); $response = wp_remote_retrieve_body( … Read more