WordPress Posts are not stored in a single table. Postmeta is stored elsewhere, and of course each table has its own format. If you ever publish content directly in WordPress (posts, pages, attachments, etc.) you could quickly run into issues with post IDs. Even if not, it would potentially require some fairly significant data manipulation to convert your non-WP data to WP-useable structure.
In this case, I’d say a REST API would be a much better way to go, and it would also be more forward-compatible.
Related Posts:
- Adding custom tables to WordPress
- Create Pages from Database
- How do I write this SQL statement for Posts written in last 24 hours?
- wpdb custom post_type problem
- Assign External Database Queries to Global Variables and Make Them Accessible
- Function causing the loop display posting more (empty)
- I’m trying to create a custom version of the wp_list_authors function that includes custom post types
- when looping through custom post data not appearing
- Custom post type and custom taxonomy key lenght & query performance
- Populate custom post type/custom fields from an external database
- Inconsistent temporary 404s on whole install | PHP error with post-template.php
- Search that will look in custom field, post title and post content
- Load custom posts with same tag as page
- Date archives for custom post type
- modify all posts of a category to “no comments allowed”
- If featured image doesn’t exist, show post content
- How can I add dropdown widget/box to admin post page?
- How to Join two tables from separate databases within WordPress
- Meta Query “IN” doesn’t work with ACF checkbox filter
- How do I redirect all 404 errors of a specific post type to another URL?
- Using ‘strtotime’ function to convert a custom-meta-box to a date-stamp
- How to save the checked boxes?
- How to get only one category of custom post type?
- Error after deleting Custom Post Type with a function (no trash used)
- Using posts and postmeta table to store custom Address Book Plugin data
- Import 10,000 Users into WordPress WITH a specific ID for each user
- Append taxonomy terms as class names in markup?
- Unusable menus and “Illegal widget setting ID: nav_menu_item[]” error
- Change message given when deleting post from custom post type
- Using WPAlchemy metabox values in another metabox
- Recent comments from my blogs only
- Calculating Bayesian average for custom post type
- Display custom field of specific post where post title matches variable
- GravityForm: Populate Dropdown with custom post type [closed]
- How to output wordpress custom tags separated by comma?
- Show Different Header on a Specific Post ID
- Admin notice not displaying
- Dynamic page outside WordPress
- Custom query to filter posts that have current post as a taxonomy [closed]
- get_posts of Custom Post Type AND Custom Taxonomy
- Changing number of posts per page on CPT-archive.php, have tried 20-30 code chunks so far
- Custom Post Type Loop throws 500 error when used in widget
- Received nothing after executing AJAX post function
- Sorting custom post type columns with external data and without meta values
- I need to add endpoint for wordpress categories
- Store CPT ‘Reviews’ average ratings to a WordPress DB table or to a DB custom table?
- How to change wp prefix for custom post type only?
- Categorize custom post type
- Hide a widget inside a div on specific type of post
- Static apple-app-site-association file with wordpress
- Breaking up CPT output into two columns
- Not connecting to database in file with multiple MySQL connections
- how to echo meta tag in header using php
- PHP question: how to combine syntax?
- Add first letter of titles to array, then compare arrays
- Replace dynamically content in a custom database table when a custom post is created
- Save and user submitted data from a form and display them in the wp backend
- How do I add custom HTML to the content of an archive page’s posts?
- widget_posts_args not using the number of posts in widget
- How To Post WordPress Custom Post Types to Twitter via IFTTT
- Undefined $post in wp_query
- Update all published posts at once
- Importing JSON feed giving Notice: Array to string conversion error
- List latest post out of 2 custom post types
- Ideas to connect external database table to wordpress posts as custom field source
- custom post type: own database table structure and custom “new-post” interface
- Fetch data from two custom post types and create multidimensional array for output to html table
- Create a Dropdown Selector and Redirect for a Custom Taxonomy in WordPress?
- Having a repeating custom field in admin custom post type, what I’d go better with, for DB’s sake? ACF repeater or query a different post type?
- Create an user checklist system for a course plateform using ACF Pro and ACF Extended
- How to get the custom post data using post id in WordPress?
- See if the email exists or not
- On saving Post My permalink is updated and category is removed automatically which cause the 404
- How to add specific terms in a custom post type?
- Limit custom post type to the authors only on front-end!
- WP_Query – How To Query Only Custom Posts With No Children of Their Own?
- programmatically generated custom post type is created more than once
- Using wpdb to connect to a different database is not working
- Accessing download link from the loop with WP Download Manager Pro
- Create posts inside CPT post
- Taxonomies are not showing in the category dropdown
- Combine multiple separate lists into one
- Custom Taxonomy – fields
- Insert data from form to database
- Print post category name from a custom post type wordpress
- CPT post doesnt shows tags and category on backend admin page
- How to make sure, that only the selected post is changing?
- Automatically convert standard posts with custom fields to custom post types
- Create 2-layered dropdown menus for custom taxonomy and custom post type
- Get month and day from a Date Picker custom field
- two wordpress sites, two themes, one database, same content
- Show Custom Post Type taxonomy term that matches custom field
- custom post type for custom talbe
- Select Menu for Custom post Type does not save
- MySQL database migration to WordPress
- is_singular won’t call my functions?
- Custom query_posts() parameter
- Inserting two categories
- Comments are not working on Custom Post Type
- Display total count of products in orders of a specific order status