Step – 1
Create a custom post type called Birthday
add_action( 'init', 'register_birthday_content_type' );
function register_birthday_content_type() {
register_post_type( 'birthday', array(
'labels' => array(
'name' => 'Birthdays',
'singular_name' => 'Birthday',
),
'description' => 'Your description',
'public' => true,
'menu_position' => 20,
'supports' => array( 'title', 'editor', 'custom-fields' )
));
}
Step – 2
Since you have a birthday date field, I prefer using ACF (http://www.advancedcustomfields.com/)
Install ACF and add additional fields such as birth date and position
Step – 3
Write query to fetch the posts which has birth date = Today.
Here is the documetation: http://www.advancedcustomfields.com/resources/query-posts-custom-fields/
This is one of the quickest way.
I hope this helps.
Related Posts:
- WordPress objects class reference
- Customizing gallery shortcode in 3.5
- What is true chmod for WordPress?
- Can You Export Theme Settings From WordPress Multisite?
- Adding Custom Fields to WordPress Comment Forms?
- Gallery Shortcode: using link attribute to link to a specific image size
- How do you add pages on a staging server, and then move them over to production
- Any Hook Called When Post Becomes Published?
- Automatically wrap post image in div
- How Can A Widget With Only One Instance Be Defined?
- Getting $comments outside the comment template
- get_theme_mod(); returns nothing
- Limit comments displayed on basis of user_id
- Find and replace domain name on the fly?
- What is the most idiomatic way to let clients edit phrases in HTML?
- How to Register and Display Widget for Custom taxonomy
- Is it possible to set default values for custom fields in a custom post type while my plugin is being activated?
- How to change “Dashboard” text in wordpress
- WordPress Template not affecting the working, keeps defaulting to the index.php template
- Custom Widget form function common elements
- Image Editor does not affect custom sizes!
- How to display post title & excerpt when mouse hovers on an image?
- How to fix the IE9/WordPress Twenty Ten Header Image Display Problem?
- Reinstall WordPress Without Losing Data
- Automatically add image caption with values from a post parent field?
- WP Northwind for Theme Development?
- list/consult Taxonomy only for the respective author/creator in dashbboard
- How to insert a sitemap within a subsite when using WordPress multisite
- How to check if site is created by wordpress? [duplicate]
- Enabling Additional CSS / custom-css
- Child Theme – how to add new widget on a specific place?
- Modify Gallery Output to render differently on a PAGE and a POST
- @font-face is not working in WordPress
- Add google org chart to wordpress page
- I’m using add_meta_box() but want to include TinyMCE editor *and* Media Uploads for each box
- How-To add Custom field in WordPress wp-ecommerce Categories?
- What changes we need to make to a theme so it can be installed as a MU Theme?
- Get Custom Logo Alt Text
- The function can not create a table on MariaDB server
- Child theme .css files are not overriding their parent .css files
- One WordPress Installation for 2 Domains
- result from custom filter admin table list backend does not work
- How can I get the custom post type assigned to a current custom taxonomy for query?
- $wpdb->replace: WHERE?
- Set Title from Custom Template
- For a specific theme, how do I build a list of all the possible theme modification names?
- Unable to edit the “customize” section and the “widget” section is populating unknown code
- Blog page problems
- Installing new theme on running site
- Switch between WordPress websites easy for an end user
- I’d like to be able to programatically setup a site to discourage crawling by search engines
- Is there a way to add a new value into a stored custom field value?
- dbDelta not creating tables with composite keys
- Customizing Users in Admin Area
- Good way to customize admin CSS?
- Divi theme: change overlay color from default blue to back [closed]
- Add table to WordPress database
- Translating (WooCommerce) placeholder text
- Display content of metabox if filled in
- User profile Pick a premade Design/theme
- Recent activity query WordPress
- Echo the Last Child Taxonomy only (not parents)?
- Embed Latest Track (Dynamic Updating) SoundCloud
- Get All Results From Other Users That Share The Same Custom User Meta As Current User
- Can we set a redirection with dynamic content in url?
- website is not loading home page (moving from one server to another server)
- How to remove (…) from the post tilte on homepage?
- Swap home page based on user role, Elementor layout breaking
- Customized Blog/Latest Posts Page
- How can I setup a development environment which auto refresh page when code have changed [closed]
- Password Protection issue
- I want to use a product thumbnail completely different than the product image
- How can I edit the WordPress menu link to allow fb: instead of http
- Fixed bottom menu on mobile doesn’t work on search included in Child Theme of Storefront
- Change Dashboard menu position?
- Get site ID from attachment url?
- how to edit or remove the dashboard footer message [duplicate]
- duplicate featured image functionality in custom meta box
- How to automatically pull an information from a form field onto an other page?
- How to create a custom menu for specific user
- How to submit form data in the same page in WordPress without reloading the page?
- Translate site in own text-language [closed]
- Move text from the side of image to below image [closed]
- Pull A Single Post Prior To Running wp_query
- How to work around the bug which prevents custom menus from being deleted?
- Customize TinyMCE Buttons
- Create a folder if it doesn’t already exist
- How to remove the tagline from the HTML ?
- Custom table or form
- How I can add blog in my magento site?
- Getting Custom Field value in WP_Query
- Adding Custom HTML/CSS/JS code in specific page
- Custom template not working for existing pages [closed]
- Adding Telescope / Meteor App to existing WordPress site
- Help needed renaming custom post
- Custom Post want button to add image and save in Postmeta
- Save And Display Mp3 Audio files on WooCommerce product page with Dokan
- Advice how to connect custom database with WordPress, change data in WordPress and finaly use this data
- Sort Search Results in Order of/by Character @ count (9) of post(s) title. (Ocean-WP theme)
- Is it possible assign a secondary existing role to already existing one?