Have you tried the basic Custom Fields that WordPress includes automatically? If you don’t see it at the bottom of your Post edit screen, click the Screen Options button at the top-right of your editor window and check the box next to Custom Fields to make it visible. Once you can see it at the bottom of the editor, click Add Custom Field and enter something like ‘event_start’ in the Name input, and your start date in the Value field. Repeat that step to create an ‘event_end’ field. When you create a new post, these fields will be available to you in the Select dropdown under Name.
To expose the start date in your page the visitor sees, use this in your template: <?php echo get_post_meta($post->ID, 'event_start', true); ?>
.
Related Posts:
- How to get posts published between a date and today?
- How to get post creation date?
- Changing the post date and time with function
- Is it possible to Schedule Attachments in WordPress?
- using wp_update_post on save_post
- How to put last edited entry on top of the blog-post list?
- Query posts from current year
- Update existing post dates to random dates
- featuring old articles without messing up with the archive
- How to display an icon when a new post is published and then remove it when a specific time past?
- How to output comments number of a post per day?
- Human Time Diff, change mins to minutes
- Display custom post types by date field
- How can I display a specific user’s first published post?
- Can wordpress differentiate between added and updated posts?
- Fetch posts from current week (Sunday to Saturday)
- How to set post expiration date and time and move the page to archive after expiration [closed]
- Display post from specific date
- Get random posts between specific dates / of specific age
- XML-RPC and post_date
- Automatically republish old posts
- Replace ‘published on date’ with ‘modified on date’ on Posts
- pre_get_posts query between 2 dates (date stored in custom post meta)
- How can I show many posts an author has per week?
- If modified on same day, show only time
- Update all comments time to random dates?
- WordPress Sidebar menu for posts based on date – guidance needed
- date issue with category post retrival
- How to get date of post when using wp_get_recent_posts()?
- Worpdress function for difference dates
- Changing default WP-Site creation date
- How to get posts published on the latest date?
- What date to use as a post date? date_gmt or modified_date_gmt
- How to update all posts at once?
- Using system date format
- Modify this line to give alternate format date?
- Post: how to set created date after post has been published [closed]
- Add “Posted on” to post date
- Auto update post title and slug when post status is changed
- wp_query if have posts show date but not in loop
- Retrieving posts by their date and category
- Date is wrong on ‘all posts’ page
- Getting an extra post’s meta data?
- Plotting posts on a graph
- Order posts by date
- Get post publishing date from within custom HTML block
- Post date automatically +100 years into the future
- Change Old WordPress Post Date Year
- My website is showing today’s date instead of published date since db migration to a new wordpress
- How can I change the date format of the revision list?
- How can get the last post date of the user?
- How to get post creation date?
- Need to display a Jan 1st post as the site’s front page on Jan 1st, and Jan 2nd post as front page on Jan 2nd etc
- Set a post expiration and delete a post when expirate
- Display Updated Date Instead of Published Date
- How do you update post date (year only) in a separate custom field?
- How do i search post by jquery datepicker?
- How to hide meta from search result only on pages?
- How do I display posts ordered by a date custom field?
- Compare date of user’s last posts
- Adding post date to ACF field
- How can I set and update the the_date according to a custom field of the post
- Query post for today, if no post get the previous one
- Set post beginning date and final date
- Skip posts, but keep posts per page
- How to display an icon when a new post is published and then remove it when a specific time past?
- How to organise post by category and date
- Display metabox with date
- Last three posts not being put in order by date. How to fix this?
- How to change text (date) in post base on the day
- How to display a certain template element only for posts published within certain time range?
- the_time() cannot be placed correctly
- How to remove a date from wordpress post
- how show post date for specific post?
- Exclude posts by date – related post
- Conditional that checks if a current category has any subcategory with posts
- Add code just after Post content
- Alternating post layout
- Get current category id from post page wordpress
- How to show last post of each website of a MU wordpress in HomePage
- Retrieve value between 2 post
- how to replace source ” https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/smoothness/jquery-ui.css” in the wordpress backend?
- Start WP Pagination From Number 1 in URL
- Avoiding “Missed Schedule” errors when inserting future posts
- How to check if a post is published today?
- How can I add a class to particular paragraphs in my post?
- Exists filter or action that change Add New Post link?
- saving/reading custom field value does not work – no value gets POSTed
- fetching posts and showing on frontpage
- Insert JavaScript in a blog post or a new page?
- Order buttons added to TinyMCE
- How to create loop of posts except post ID defined via ACF field
- How to redirect if is post edit or publish page?
- How to delete/customize imported demo content from a theme or add my own?
- testing result of $.post with json_encode
- Clean up customize_changeset in DB
- count_posts to a standalone link
- Blog styling in SASS
- Preview own posts if logged in
- Pagination for custom query won’t let me back on page 1