Unless you want to use PHP to run queries directly on your database, you’ll have to use a REST API and Javascript to gather the data. One point worth noting is these REST API’s also use direct database queries in order to gather info to return to you when you make a request. This means that any updates to WordPress database structure that would break your app if you wrote PHP to access the DB would also break the API plugin you use. The only difference is most plugin devs are pretty quick as far as updates go when their code becomes deprecated, and may be able to fix any issues faster than you could.
Here’s one JSON API plugin I found in the WordPress repo: http://wordpress.org/plugins/json-api/
I’m sure there are others. Just look around. Let me know if this helps clarify things a bit.
Related Posts:
- How to properly insert data into custom table via plugin
- How to build an API as a plugin
- Simple form that saves to database
- How to store ACF custom fields data in a custom table
- How to edit/delete single row items in a table on my own menu page
- Create or Update thousands of woocommerce products via PHP
- Get total number of comment of the posts written by an author
- How to write one comment and publish on every post using database or plugin?
- Make id column as AUTO INCREMENT on plugin activation
- wp_remote_get() returns 403 while file_get_contents() does not
- Creating a CSV with PHP inside the plugin directory
- How to pass the API key to the client from the database? [closed]
- Issue running db create table query from static method
- Integrating boxtal PHP library into a custom WordPress Plugin
- How to create plugin/ page that reads from database
- Api external with wordpress
- Comment “like” problem – “users who like this” avatar linking to current user profile instead of “liker’s” profile
- Is this plugin safe to run?
- How to display results from a data table with an encrypted user id?
- add_action for publish_post doesn’t work
- Getting URL GET parameter with Code snippets and storing it in database?
- How to convert Currency from USD to other IP Based currency in Php function
- How do I display PHP file contents on front end of WordPress?
- Push Contact form 7 variable to front end after submission
- Cant create table on plugin activation
- How to use WordPress header function and footer function and not load word press database
- Get Shortcode output to database for static post_content
- Moving a few select DB tables to a new WP instance
- How can I store user preferences in WordPress and retreive them later?
- How to save information related to post in database?
- cURL External API request displays content above other content on page
- plugin doesn’t retrieve data from database
- Error 400 Invalid “products[1].productId” Kinguin [closed]
- Can I send a body using wp_remote_get()?
- Change Page’s Tag Using functions.php File
- Bad Request (Invalid Hostname) on working server, database problem
- Plugin Not Working, But Only On GoDaddy Hosted site
- Errors while using ajax from external wordpress page
- shortcode doesn’t work
- post expire after x days
- How to get all events from ‘All in one Events calender’ plugin in JSON format?
- cURL error 60: SSL certificate problem: unable to get local issuer certificate
- How to Replace Words with Hypertext Link But Ignore Previously Existed Links?
- Where to hook my plugin’s action
- Building an email signup form. Where should the information be saved in the DB?
- Apple push notification doesn’t work
- How to get the element ID from new menu list that added with add_filter()?
- Replacing a plugin function with a custom renamed function doesn’t work
- How to output CMB2 select options from repeated groups select elements?
- Delete query not working in plugin
- How to deal with WordPress and Pocket API to automate content curation on my hosted wordpress blog? [closed]
- How to disable search as you type plugin suggestions?
- WP All Import – Execute Imports
- External RSS feed to WordPress Portfolio
- Create Gallery using Custom Post Type and add sum gallery as sub gallery of Main Gallery
- plugin code is pulling information from database in one instance and not in other. What is wrong?
- Can I create a table on my DB without creating a plugin?
- How to include this jQuery File in wordpress?
- Socialite WP plugin, unable to obtain API keys from FB
- dbDelta not adding additional columns in plugin database update
- Include a php file from another plugin
- How can I fetch data from another website to my wordpress website with mysql database
- Switch from wp-cron to a server cron job
- Sending customer an email with link to stripe to make payment
- WordPress plugin: efficient way to store large data
- Theme Functions run a function upon activation or preview
- Custom Plugin scripts from admin working in frontend
- get_post_meta shortcode returns empty field
- create pages automatically and dynamically in wordPress
- How to add a prefix to a WordPress post preview url?
- i can not access the post in custom template of my wordpress plugin
- How to get a specific string from a url
- add_action(‘the_content’, ‘my_plugin_content’) is null
- How to avoid the 403 Forbidden error in a WP Plugin with Ajax and PHP
- WordPress logout appends cache/all/index.php to the site_url()
- Change (replace) word in metabox
- How to remove a css class for any wordpress page
- Creating wordpress admin page panel [Theme Option]
- how can i get records from wp_postmeta table using particular meta_key in database?
- Write mysql credentials in plugin
- export high ress images to pdf
- Plugin that uses AngularJS tutorial
- custom url with custom post
- Saving an array to get_options
- MySql Query for WordPress
- Some of my php is rendered only when logged as admin
- Pulling sub-site content into specific pages
- Help me with my first very basic plugin
- Undefined constant error in pluggable.php
- How to create post comparison in wordpress
- Requires PHP version 5.3.0
- True or False: Is an Apache error or PHP error the same as a WordPress error?
- Need help with wordpress audio preload
- Very slow page loads
- Allow direct access to files/folders within WordPress to replace wp-admin
- move setting data from wordpress api to codestar freamwork
- How to trigger plugin migration code when plugin updates?
- How to Save Category and Delete Category in same Function
- I want to move the one click accesbility button on bottom of my website screen,
- WordPress : how to create onglet and remove it when only one