You just need to compare values of get_the_post_time()
and get_the_modified_time()
.
if ( get_the_post_time() == get_the_modified_time() ) {
// Published on...
} else {
// Modified on...
}
Related Posts:
- How to remove a date from wordpress post
- How to get posts published between a date and today?
- How to get post creation date?
- Changing the post date and time with function
- Custom Post Types, slug, archive and SEO plugins
- Is it possible to Schedule Attachments in WordPress?
- featuring old articles without messing up with the archive
- How do I change the gallery that is inserted in the post?
- How to allow slashes in single posts when i click in the edit permalink button
- 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
- How to get new post URL?
- Display custom post types by date field
- Can wordpress differentiate between added and updated posts?
- Fetch posts from current week (Sunday to Saturday)
- WordPress theme ajax have_posts()
- New blog template to display only one category
- Convert a complex webpage into WP theme
- How to set post expiration date and time and move the page to archive after expiration [closed]
- Display post from specific date
- Animated gif for a thumbs
- XML-RPC and post_date
- Posts vs. Pages
- Automatically republish old posts
- pre_get_posts query between 2 dates (date stored in custom post meta)
- Why orderby=”date” does not support manually changed posts?
- What is the standard featured image size?
- Removing rel=”nofollow” from links posted in Post Content
- How can I show many posts an author has per week?
- How to show single post page as home page
- Blog page not working
- Update all comments time to random dates?
- Is Hfeed class for all pages needed
- WordPress Sidebar menu for posts based on date – guidance needed
- date issue with category post retrival
- Highlight static blog page link in header
- How to get date of post when using wp_get_recent_posts()?
- Remove Content after
- Worpdress function for difference dates
- Block editors annoying warnings
- Changing default WP-Site creation date
- How to identify and hide/remove an element from a WordPress page [closed]
- How to change the layout of posts when viewing all posts by tag [closed]
- What date to use as a post date? date_gmt or modified_date_gmt
- How to update all posts at once?
- Images showing up in Post Editor, but not in Published Post
- Assigning Two Different Post Dates For Single Post
- Custom Articles page only showing a limited number of posts per page
- Getting Whitescreen when publishing a post [closed]
- Using system date format
- Add “Posted on” to post date
- Auto update post title and slug when post status is changed
- Retrieving posts by their date and category
- How do I link a Post Type to a Template in Masterplan?
- Change the background of each post according to the category
- Date is wrong on ‘all posts’ page
- Getting an extra post’s meta data?
- Problem with articles feed: XML Parsing Error: XML or text declaration not at start of entity
- How do I allow certain users to make a certain type of post?
- Plotting posts on a graph
- Page of posts made to look like homepage
- Post date automatically +100 years into the future
- Edit post & page option does not display on latest wordpress
- Change Old WordPress Post Date Year
- Related post not showing table of content
- Google indexing duplicate page content with Page #### in post title and /page-2 in permalink instead of the ones I set
- Include Recent Post in Category
- 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 to delete/customize imported demo content from a theme or add my own?
- Hiding title of selected post without plugins
- 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
- Post URL duplication adds numerical value
- Query post for today, if no post get the previous one
- 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?
- Save/retrieve form data best practises for theme development
- How to organise post by category and date
- Display metabox with date
- wordpress taxonomy results
- How do I get the WordPress post to display the content instead of an image?
- post content includes and seo vs. duplicate content
- How to display a certain template element only for posts published within certain time range?
- Automatically delete default posts and pages on theme install?
- Extra Theme – Fit image inside of Featured Post Slider
- Permalink remain the same on each page
- the_time() cannot be placed correctly
- Is there a maximum amount of pages for a multi-page post?
- Is there any SEO impacts on unattached vs attached images for a post in WordPress?
- How do I make it so that WordPress displays the post as a heading, followed by a written excerpt?
- Is there a block to print post link standalone in a block theme?
- how show post date for specific post?
- Hindi content automatically converting to unreadable language?
- Exclude posts by date – related post
- Edit Page button is gone