As the reading of the database is lightning fast, I would not worry too much about it.
You have got a few points to consider:
- If you want to have all your metavalues queryable by the
standard wordpress queries, you have to save them into different
records. - If you have a big, standardized set of custom values, maybe
you should consider creating your own table, linking to the postId,
storing all your metavalues. Keep in mind that you will have to write
your own queries in this case. - If you do it the standard wordpress way, you have a predefined
set of functions helping you to deal with the metadata – you should
findget_post_custom()
a very useful one to output your values.
I do not know exactly what you want to do with your data – so if you could specify your problem, we could help you a little better.
Related Posts:
- Allow member to have access to custom post type only. Permission to only edit their own posts
- add_rewrite_endpoint() not working for custom post type archives
- Pagination with custom post type not working
- WP_Query() show posts that end later than today
- Sorting a query by custom field date
- custom post type archive page url to point to Page permalink
- How to hide CPT files from media library programmatically
- post count is wrong when using same taxonomy for 2 different CPT
- Custom post types – RSS lastBuildDate issue
- Determine which template-{slug}.php is being loaded
- How to remove/hide elements from the admin menu?
- Show Custom Post Type by Author
- Archive page for taxonomy of custom post type
- CPT tax slug conflict with post type slug
- $wpdb returns no results with SELECT query on custom post type, works on default post type
- Exclude current post when getting related post on custom post type and taxonomy
- How to redirect all pages of a custom post type [duplicate]
- Upload Image from Front End and Resize
- Multisite with a single, shared custom post type, while retaining site URL
- custom post type default permalink
- Show custom field from custom taxanomy term on custom post type
- How to specify URLS for custom posts & taxonomies
- Allow Administrator role access to custom capabilities [duplicate]
- Second Custom Post Type Archive
- Custom search results page query, link permalink to post title while separating by post types
- Delete link on single-custom.php with redirection
- Creating Multiple Loops in Genesis, One Post then 20, each with custom fields
- custom comments on specific post type
- Single Template for Custom Post Type stops working after WordPress 5.4 update
- wp_insert_post generates endless posts
- Adding dropdown select meta box to custom post type – seems restAPI is interfering
- child of post type (custom)
- Rewrite rules for custom posts types
- Allow user to set custom order to a list of custom taxonomies?
- Crafting WP_Query array, sort by date
- WordPress wrapped added a span tag to every single p tag
- Custom Post Types with a common category for a blog listing
- Custom post type archive page blank
- Custom Widget WP_Query problem
- Custom Fields for Custom Post [closed]
- Dynamic Custom Fields
- Removed custom post type slug but not working for child pages
- Terms showing up in object cache on unrelated pages
- Show Custom Post Type meta boxes only on Page Edit
- using wp_update_post for updating custom post type
- How can meta boxes be added to “unknown” custom posts?
- Best way to specify “article type” in URL
- link to a random custom post while excluding current post
- Custon Content within WordPress Loop
- Custom Taxonomy Category link
- HowTo: Custom Post Type (Meta) to Custom Table
- show all custom posts types in home page
- How to group navigation items in the admin panel
- Create Array from custom post type to display a slider
- Creating a website with EVENT post type and PAGES as subpages of those EVENTs
- Fix permission error for deleting custom post from front-end?
- Archiving custom post content?
- Custom post type slug 404
- Counts Posts ( custom post type ) by Author in author.php
- WordPress multisite – is it possible to have different taxonomies for each site?
- How to use a specific custom field in a custom post type as slug
- Wp custom post custom capability not working together
- Meta box not appearing in my custom post type
- Display Taxonomy Term Children in a Drop Down without Submit Button
- cannot achieve this structure (custom posts VS categories VS ??)
- Display CPT index page as front/home page
- Use conditionals with wp_enqueue_style to attach stylesheet according to post type displayed
- Custom Post Type Meta Box Text Input Field Won’t Save When Blank
- How add column from new table in Custom Post Listing (admin)
- Home page is getting current-menu-item even if it’s not home
- Sticky posts limit query and pagination for a custom post type
- no_rest_route in Unit Testing for REST endpoint for CPT registered via show_in_rest
- how to achieve this permalink abc.com/CPTName/CustomPostTypeCategorySlug/categoryname
- A certain theme is forcing it’s singular post layout
- How to change URL for custom post type archive?
- How to handle this wordpress custom post type rewrite problem?
- custom post type – project link output via single-portfolio.php
- wp_get_nav_menu_items doesn’t return custom post type item
- Taxonomy counter on Taxonomy List(plugin)
- Is it possible to arrange Custom Post Types from CPTUI into a Folder?
- How to use a custom post type as child of a particular post of another CPT?
- Automatically Add a default category to a Custom Post Type before save_post action
- Search facility with directories
- Capibilities of CPT WordPress
- Create Second Search Page Only for Custom Post Type
- How to make a shortcode for my WP_Query Loop? [duplicate]
- Custom post type permalink issue [duplicate]
- Custom Post Type Audio Content
- Post is not being published after clicking on Publish button in Custom Post Type
- Relationship with 2 custom post types
- How to create content automatically when a post is published?
- Updating User Meta from Custom Post Field Upon Publish Not Working
- Listing custom post type items from a couple of custom taxonomies
- Pagination not working with custom loop
- CPT Metabox with email notification
- Catergory args causing loop not to show
- Pagination for Custom Post Type with Multiple Types
- Custom Post Type Archive Title Lowercase
- WordPress custom field sorting, weird behavior: the latest post is at the end
- Limit taxonomy terms added to a custom post type