If you look at wp_insert_post()
‘s source code, you can see that it’s locked to using $wpdb->posts…so you’d really need to modify the core to make it work the way you have outlined (or potentially filter it earlier up in the loop, either way, you’re making a mess). That said, having a large number of posts does not put a significant load on your site, since almost everything is done by IDs or by name directly, and rarely, if ever, by filtering from a list of returned results…you’re talking like fractions of a millisecond in gains for an incredibly hacky solution. I strongly recommend that you just stick with what wordpress has by default as the structure is quite efficient as it is.
Related Posts:
- How can I store data from custom fields to custom tables?
- Custom database or Custom Post Types?
- add_meta_box Callback not being called
- Plugin allowing for artists, events and venues
- how do i remove posts from a WP_Query so the pagination is right?
- Is it possible to create Custom Post plug-in?
- Creating a custom post type, adding custom meta fields, preventing all future editability of posts of this type
- auto populate list of questions if user select a category xyz
- Redirect to another page using contact form 7? [closed]
- Custom Post Type Fields
- How to Resize the Custom Post Images?
- Amazon.com intergration with WordPress?
- Sticky option for custom post types without using custom fields or plugins
- How do we update a custom file upload field with the Advanced Custom Field plugin?
- Price comparison table based on Custom Post Type?
- Show related posts based of current ACF field name in a single page post (a loop within loop)
- “After file loaded” action
- Dictionary-style definition list plugin
- How to create repeater field manually, without plugin (ACF Pro)?
- What database state changes happen after a post is manually “updated” with no changes?
- Register PODS Custom Field with WPGraphQL [closed]
- Can i stream data to a custom_post_type?
- WordPress hide post from custom post-type on a single page
- Create multiple posts when a custom post is created
- $wpdb->insert not working inside save_post tag
- WordPress custom posttype meta values doesnot save
- What method should I use for a sidebar widget that reads latest posts?
- Synch Custom Post Types (and Custom Fields, Cats, etc.) Between WordPress Sites
- Insert data in custom table during new post creation
- How can i do custom author list?
- A plugin for software reviews site like this one?
- Links not opening as they should. Custom WP plugin
- how to compare date meta value in jet smart filter Date query?
- If I delete plugins via FTP are settings kept in DB?
- How to remove duplicate Custom Fields?
- greatest() function returns undefined property
- Get total number of comment of the posts written by an author
- Plugin not saving values when placed in a folder within /wp-content/plugins
- How to add the post ID (or any other post data) to a Contact Form 7 mail?
- Security checking in meta_box save is reluctant?
- wordpress reusable content blocks
- Override plugin with functions.php
- Make the checkbox meta field checked by default
- How to write one comment and publish on every post using database or plugin?
- Last modified field for user profile?
- Should i delete the posts created by a plugin on uninstall?
- Is the wordpress user-model changed in wpmu?
- Default Plugin Settings Not Writing to Database
- Creating Tables on Network Activation
- Allow users mark posts as “complete”?
- Make id column as AUTO INCREMENT on plugin activation
- WordPress CMB2 – Run function on save
- FacetWP group listings by custom field [closed]
- What kind of data is that?
- Cannot login to ADMIN even after changing password in phpmyadmin
- Unable to create new database table upon plugin activation using dbDelta
- Where to hook my plugin’s action
- Embed a Google Sheet as you view it in a separate tab?
- Is there a way to order posts and custom post types as one group?
- How to determine what is generating large amount of database queries?
- RW Meta Box ,Problem setting post title
- How does WP handle multiple matching rewrite rules?
- Building an email signup form. Where should the information be saved in the DB?
- dynamically generating plugin syntax
- Retrieving a Value from a wp-database
- Is it possible to use WordPress as an online portfolio for text content? What kind of theme would I look for?
- Building a store locator with google maps
- Custom Field Template seriously messed up in WP 3.1.1
- Need help restoring my WordPress blog
- WP plugins for building a database?
- Duplicate posts when posting nulls in records in phpMyAdmin [closed]
- WP All Import – Using Xpath to set a select value
- How to make wp_enqueue_style and wp_enqueue_script work only on custom post type
- Where does WordPress store plugin (enabled/disabled) status for multisite?
- Loco Translate: Custom Post and Custom Taxonomy Labels not translated in wp-admin menu
- Accessing post’s meta data based on user’s click of a post
- Carbon Fields use in custom plugin class
- When to use action hooks and plugins
- How I can get custom field’s current value?
- UnWanted Custom field added in the wp page edit area
- Sorting custom post type columns with external data and without meta values
- Plugin Options Not Saving to Database in WP 4.5
- Woocommerce – How to populate custom select field with stored values on checkout page?
- Replace text in post from cvs
- Implement Autocomplete for a custom field on WordPress Plugin Frontend
- Doubt using $wpbd->get_col for a single column
- How to create user groups and allow custom posts and plugin modify/access to specific group?
- Correct way to make meta box with more than one meta field secure
- I want to extend the current themes’ single.php to display the meta fields of my CPT
- How to query the custom fields by language?
- Plugin custom post type – Internal server Error
- Exclude post by custom meta with pre_get_posts
- Access WordPress database outside of WordPress
- How to create custom tables in WordPress using my own plugin?
- How can I create a custom shortcode that will return a custom post type by ID?
- How to access data in wordpress database externally using php
- get_post_type() and WP_QUERY issue
- WordPress Settings Lost After Site Migration
- get_post_type on post.php
- Help With MySQL to WPDB Query Conversion