There are probably a few ways to do this. The easiest way I can think of is to install Pods Framework. You can install it through the WordPress repository like you’d normally install a plugin, or through GitHub. Using Pods, you can extend the WordPress user database to add a birthday field. You can also use it to extend your posts and pages by adding a custom field where you can enter your age restriction. Pods is very easy to use, and once you have everything set up, it’s just a matter of editing some code in your template files to read the data. Data can be stored in separate MySQL tables, but in this case, I think the simplest way to do it is to store it as meta keys / meta values (which is the standard in WordPress).
Related Posts:
- Checking if Database Table exists
- Staging sites, how do you manage synchronising updates in the DB?
- How to get the post publish date outside the loop?
- How To Export/Import WordPress (MySQL) Database Properly Via Command-Line?
- Using transients in conjunction with memcached
- Has parent field in the table wp_term_taxonomy has term_id or term_taxonomy_id
- Forcing nickname as display_name in custom edit profile template
- Syncing local content with development / staging sites
- Export WP database for import using WP-CLI on Vagrant Box
- Improve or optimize a very slow query
- What is the advantage of separating wp_users and wp_usermeta table?
- Showing content from another wordpress installation database in the page template loop?
- Dynamic data in `wp_register_script` needed
- “MySQL server has gone away” since update to 3.8
- WordPress page title repeated in SOME pages
- Why is $wpdb->get_results failing on certain tables but not others (which have data)?
- How to correctly add a table to the WordPress MySQL database
- MySQL Syntax Error upon restoring database from backup [closed]
- Help running a MySQL query to update all wp_#_options tables in a Multisite install
- How to verify password outside WordPress?
- Is it safe to convert tables from MyISAM to InnoDB?
- Use one WordPress database with multiple instances of one site
- Who is responsible for data sanitization in WordPress development?
- How do I properly update the WordPress database password?
- wpdb_prepare with multiple or condition
- How to check if a core update, like 4.9.8 → 5.0, involves a database update (migration)?
- $wpdb->insert is not working
- WordPress Install and Database on separate hosting?
- Moving a site from a temporary domain to the live domain [duplicate]
- What is this in my tables
- Moving minor updates between local and live sites – just database?
- what is the best way to store user created data?
- WP get stuck with a query on MySQL when the site is resumed
- Using GROUP CONCAT in my-sql query with wp_usermeta table
- How to move the WordPress site Layout from test site to Production site?
- Trying to change database tables storage engine to innodb gives error “invalid default value for ‘post_date'”
- database connection [closed]
- Your PHP installation appears to be missing the MySQL extension which is required by WordPress
- Able to use all admin pages but in the frontend there is a “Error establishing a database connection”-Error
- Retrieve data from the database to table such as comments in the admin control panel
- Need to store custom user information (many-many relationsips), preferably not as user meta
- charset problem with new custom table
- Undefined Variable: mysqli error when connecting to database
- WordPress and user security
- How to share plugin created database tables between two WordPress sites
- How to connect to a remote database in WordPress?
- Migrating from PDO using SQLite to clean new install using MySQL
- Selectively restoring original posts from a compromised site to a freshly installed WordPress database
- Change WordPress URL in sql file via Terminal
- $wpdb->insert Giving duplicates
- Which data is written and stored in the database when read-only (non-posting, non-commenting) users visit the site?
- $wpdb is not initiating
- Duplicated site isn’t recognized as a site
- My options table is huge. What can I do?
- Where is phpMyAdmin inside WordPress?
- What can I do when an outside party hacks into my weblog and changes my display name?
- How to delete database without using any plugin?
- Cannot restore wordpress database from sql dump [closed]
- WooCommerce: remove sample & dummy data
- multiple wordpress installation with shared usertable on an different database
- Is database deleted on clicking “reinstall” button in WordPress updates?
- wordpress database restore – broken link
- 6 random character prefix automatically added to entire DB tables, how / why? [closed]
- Is my way to change WordPress server is correct?
- WordPress database products structure
- I cannot find the difference between these wp_capabilities values in wp_usermeta
- What unexpected data might be stored in terms table and related tables?
- Files on Localhost, Database on Server
- Is there any way to monitor a MySQL db and check what has changed?
- DB prefix not updating
- Any other way of storing plugin admin data setting
- Will memcached improve performance with WP Super Cache already running?
- Restore of database doesn’t show content
- Why theme settings lost when I installed https
- WordPress site migration – locked out of admin area
- WordPress users table missing indexes
- unable to use my wordpress site after moving
- How to add download link from database on custom page template?
- How can i syn wordpress user table with a stand-alone php script?
- insert data from a form:: Warning Empty query mysqli::query()
- Db connection problem on Azure Since database moved on CLEARDB
- How to get specific table by current user login
- After Migration From dev, Only my Links to the Homepage Still Redirect to dev
- do I need to change the default database prefix?
- Mysql Queries per Visit – Crazy High
- Media Library doesn’t allow uploads? Upload Directory
- using same mysql user with many databases
- Manage 3 Layers Of Information (CTP – Posts – Then Maybe Metadata?)
- Get id from database
- How to write to wp-users table
- Theme options not being sent to Database
- What is good W3 total database caching option? [closed]
- Change taxonomy slug in database
- Migrated to Namecheap, now Trouble with Database & wp-config [closed]
- Multiple Address In WP-Option Value
- WordPress database error Unknown column
- Recover Same WordPress Admin Password
- Custom wordpress SQL statement for a website
- WP Multisite Users Not Linking
- Query a meta key using an array of values where the database value is a string