I’ve used this:
update_post_meta( $post->ID, 'your_meta_data'.$user_id, 'your_value' );
<= this will add for each user 1 field for that post, in db.
All Good 🙂
Related Posts:
- Front end registration/login & publish/update 1 custom post
- Plugin needed to allow subscribers to post articles on the front end without admin approval [closed]
- WordPress and Unity high scores table
- Should I use custom post types or a custom database tables for plugin development?
- Custom post type for ‘staff’ versus using wordpress user profiles?
- Custom Post Types, or completely custom?
- Add custom post type items from frontend
- Right way of storing large number of custom post fields
- Custom Post Type or Custom Tables
- User roles – enable custom posts disable posts
- Allow User to Edit Page Based on their Email
- How I upload, save and set a featured image from my frontend?
- Create Pages from Database
- How to restrict specific post types from being read or added by specific user roles (eg. author)?
- Use Custom Database with Custom Post Type
- Custom Search | Wrong output & question
- Trying to save custom post type from frontend partially working
- Assigning a role to a specific custom post type (and ignoring other post types)
- Assign category to front end post
- Save custom post type in different table
- How to show custom post type count in the users admin page
- Create and edit posts from front end
- Make custom post type display as a page
- Delete Current Author Frontend user while delete custom post type
- Upload Image from Front End and Resize
- Recommended custom post type structure for TV Schedule site?
- Link users to a custom post type
- Where to store custom tagging data associated with a custom post type
- wpdb custom post_type problem
- WP All Import – Using Xpath to set a select value
- Ajax Check Post Status
- Want to Add Custom Fields for Uploading video to WordPress Users from front end
- How to restrict CPT post’s fronted view only for specific user roles?
- how to delete all users and posts based on ‘user_meta’?
- How to save custom taxonomy from front end post submission
- Crafting WP_Query array, sort by date
- How to use custom taxonomies to reference complex relationships?
- Create a clone from one WordPress site to another in a few minutes
- Hiding posts by other users and non-logged in
- Is it possible to store Custom Post Type data in separate set of tables and still have wp_post class functionality?
- Add update or delete database records using custom post type
- Disable user from updating certain posts
- Query posts based on the meta key values of logged-in users?
- How to restrict author to only access one custom post type ?
- How to make front end form only accept certain values
- Associate multiple users to custom post type
- WP_Query orderby and tax_query
- Importing Data from a Non-WordPress database, into WP
- Organize WordPress site, so it can maintain with huge database
- Custom Post Type & Meta Box – Displaying meta box information on front end?
- Save custom post type to external database
- How can i display movies in profile page, added by an user?
- Specifying meta field’s column type in Database using add_post_meta
- Custom User role not working with custom post type
- Running a song lyrics site on WordPress
- Should I use custom taxonomies or not?
- get comments by current user inside page template
- Designing a custom post type with a minimum number of meta fields
- Allow front end users to add data to a custom post type
- WordPress hook which triggers on post import
- Entity to store contact form entries?
- Database alteration: users who voted
- Add a custom post when inserting a new user in WordPress?
- Add term for custom taxonomy from front end
- delete duplicate meta_value with same post_id
- Import External XML
- Front-end Image Upload to Custom Meta Box
- How do you make relational post types in WordPress? [duplicate]
- Does this archive template part look like its making too many calls to the db?
- Preview url not working outside wp-admin
- Right way to store a large set of similar information on website? [duplicate]
- Custom post type and custom taxonomy key lenght & query performance
- How select query is generated in a Custom Post Type?
- dynamic vue widget inside custom post
- Assign a Post to a User
- Create 3 Levels of relations with WordPress
- How to store additional data that is related to core data
- Autofill advanced custom field with user data
- Saving Child Terms on front end not setting parent
- Multi Photo Upload with Caption on Front End for Custom Post Type
- Event Manager: Events Deleted are still in DB as published but hidden in admin
- Limit Number of Custom Post Type Dashboard
- Reference field of users in custom post type
- Custom Post Hierarchy and users
- Getting Custom post category from Form
- Creating multiple profiles under one user to assign to particular posts
- Add a meta to custom post type which corresponds to a particular taxonomy
- Control what custom posts a user can see
- Add a image to a post published on a CPT from the front-end
- Shared Custom post type between WP network sites
- Front end page submission form does not attach custom post type
- Custom Post Types and Posts are mixed
- Front end Submit not posting to Custom Post type
- Most efficient way of deleting post
- Problem with menu categories doubling up when updating database?
- Switched server & domain name, now custom post types won’t save
- create category upon saving post and save post in that category
- how to show Author post type count
- Front end post or photo or both
- Why WordPress does not Use Separate Table for Post Types (When Registring)?