Display a number value from mysql query in WP

Your easiest route to this is probably shortcodes, which effectively allow you to insert the output from a bit of PHP code in a post or page. For example, this would create the shortcode [countpeople] which you could pop in any post and it would render the value from the SQL statement using a $wpdb … Read more

Submitting form to PHP

You’re trying to combine isset with a value comparison, and that’s not how it works. You should rewrite this: if(isset($_POST[‘Client_Type_Edit’]) == ‘Individual’) to this: if ( isset( $_POST[‘Client_Type_Edit’] ) && ‘Individual’ === $_POST[‘Client_Type_Edit’] ) This is checking to make sure that $_POST[‘Client_Type_Edit’] is set AND the value is equal to “Individual”. Now repeat that for … Read more

How to authenticate via API to allow writes/updates

In the documentation I could find, it seems there were four options. OAuth1.0a Server – this appeared to be unsupported and obsolete Application Passwords – This might work, but it seemed a bit awkward to me JSON Web Tokens – this appears to be unsupported and obsolete Basic Authentication – this appears unsuitable as far … Read more