You might like to:
- Use a custom field as @Fayaz mentions above. Advanced Custom Fields will be the best for this (and you have it already).
- Add a new field (and I’d call it ‘Year of birth’) using Range. You could use a datepicker, but this way it’s cleaner and less intrusive:
- This will then give you nice stable meta data for each post (‘stable’ as in their ‘year of birth’ doesn’t change; age does!).
- You can then ‘call’ that meta data depending on what you want.
- If you wish to reference posts that are of a certain age range, you can do this with a WP_query using meta_query.
- If you want to show someone’s age on a post, you could use current_year minus Year-of-birth.
Note that this requires some level of development. This is WordPress development after all..!
Related Posts:
- get_posts assigned to a specific custom taxonomy term, and not the term’s children
- How can I get only parent terms?
- get_terms does not return any results for my custom taxonomy?
- Order terms by term_order
- Custom Taxonomy not working with posts_per_page in new WP_query (pagination problem)
- How to display warning on post editor when trying to add new term to custom taxonomy?
- How do you remove a Category-style (hierarchical) taxonomy metabox?
- Modify Term Update Redirection
- How to get first post in a category of a custom taxonomy
- Is there a way to import terms into WordPress?
- get_terms() doesn’t return empty terms even though hide_empty is false
- You are not allowed to manage these items – bug introduced in 4.4
- Get taxonomy name of current post
- How to hide custom taxonomy archives same way as hiding custom post types?
- Custom metabox for menu administration page?
- Remove Custom Taxonomy Base
- Custom Fields and performance
- Get custom category name from ID
- Retrieve custom taxonomies
- why do drafts return as part of wp_query?
- Populating dropdown menu with hierarchical taxonomies
- Taxonomy archive template to have conditional logic for displaying child categories
- Set posts_per_page in WP_Query for custom taxonomy
- Redirect to Post List by Taxonomy on User Selection of Taxonomy Dropdown?
- How do I get WordPress URL rewrites into Sitemap?
- How can I allow a custom taxonomy for certain roles?
- Removing the “Popular Terms” area from the Taxonomy Edit Screen in the Admin Area
- Sorting taxonomy columns by meta value numeric
- Show only 1 term of a current posts taxonomy
- Custom user taxonomies fail when i register multiple taxonomies
- Top level parent taxonomy ID
- Date range filter for manage posts list on edit.php
- Autogenerate Front End Form Field With jQuery
- Selecting all posts from the children of a particular parent taxonomy
- Display related products based on 2 specific product attributes values in WooCommerce
- How to get all taxonomies which can be added in menu?
- WordPress Tag or Custom Taxonomy Return All Posts if has that Word in Post Title
- display one post out of each custom category (aka “term of custom taxonomy”)
- Get custom taxonomy for visual composer shortcode but not working?
- Widget Logic use with Custom Taxonomy
- Select multiple categories from CPT to display in LayersWP builder widget
- Display value of custom field of custom taxonomy in single post?
- Custom Taxonomy and Rewrite URL
- limit post by a taxonomy in the admin
- WordPress Custom post query sorting does not work
- group posts by taxonomy terms
- List related terms + taxonomies
- How to create a custom taxonomy using a shortcode?
- Custom URLs in Custom Search Results
- how to extract the username of the wordpress user?
- WordPress set taxonomy on post?
- Removing “trashed” posts from post count in custom taxonomy terms?
- Why does wp_remove_object_terms not work?
- Best way to redirect taxonomy terms to pages
- WordPress cannot find user taxonomies on frontend
- Taxonomy archive template that shows posts from more than one taxonomy
- Hide echo of no categories from get_object_taxonomies
- Drop-down filter doesn’t retrieve custom taxonomies
- Filter with two id of the same value CPT UI(taxanomies)
- get_terms does not return any results for my custom taxonomy?
- How Can I Remove Child Slug From Grandchild Slug When Using Duplicate Grandchild Slugs?
- How to filter and/or sort user taxonomy query inside custom user taxonomy archive page?
- Create multiple taxonomies with custom fields values on the fly when creating new posts
- Admin only taxonomies?
- new custom filed not showing in taxonomy
- Custom Taxonomies Archive Page 404
- How to replace custom post type with custom taxonmy in permalinks
- Cloning product not copying custom taxonomies
- Rewriting url for multiple Taxonomies and Custom Post Type
- Why is the category item count not updating after assigning a category?
- Add custom taxonomy for post using cron job
- deleted_$taxonomy not getting fired
- Dropdown (with onChange) with custom taxonomies
- Custom column into custom taxonomy (img tag with slug-name as file name)
- ACF Custom field not showing in Timber Taxonomy page
- How to get a terms and posts associated with another term?
- Displaying subcategories and then posts in taxonomy template
- WP Query : strange behaviour with multiple no-hierarchical tax
- How to show one post content in another post content which has same terms?
- How to set “manage categories” capabilities on a post type taxonomy but not on the general categories?
- Dynamic drop down of child terms and then drop down posts
- Custom taxonomy name not being translated in post manager page
- Include attachments with a custom taxonomy in search
- List terms and order by second word
- If term and page have the same slug, how can I view the term archive?
- Can I use multi (sub) levels of relation (AND | OR) on custom query?
- Avoiding stripping of HTML in Custom Taxonomy Meta Field
- add custom fields in custom taxonomy meta box in wordpress-3.5.2
- How to permanently delete a taxonomy
- How to update WordPress custom SQL Select query for custom taxonomies so that syntax is correct?
- Display term description on hover using get_the_term_list
- How to query posts that are not related to any term of a taxonomy?
- Can I use get_term_children to show child terms if they exist and show something else if they don’t?
- add_action with variable as a part of the $tag string
- Displaying the custom taxonomies side by side on the admin dashboard
- Display woocommerce product_cat child terms with thumbnails
- How to add a custom page template selector to a custom taxonomy?
- How to display Custom taxonomy on custom post listing page [duplicate]
- add_rewrite_rule pagination 404 error on page 4 and above
- Taxonomies starting with a hyphen (minus) to assign B.C. dates to a post