Calling get_the_date( get_option('date_format') );
will return the exact same value as get_the_date();
this is because by default if a date format is not specified when the function is called it will use get_option('date_format');
as can be seen from the following snippet taken from the get_the_date()
function itself:
if ( '' == $d ) {
$the_date = mysql2date( get_option( 'date_format' ), $post->post_date );
} else {
$the_date = mysql2date( $d, $post->post_date );
}
Related Posts:
- Changing the post date and time with function
- Human Time Diff, change mins to minutes
- Set a post expiration and delete a post when expirate
- How to change the case of all post titles to “Title Case”
- Function to execute when a post is moved to trash .
- using wp_update_post on save_post
- Fatal error: Call to undefined function post_exists()
- How to put last edited entry on top of the blog-post list?
- Query posts from current year
- Code to auto expire posts after 30 days
- List only child categories a post is in, of a specific parent category
- How to change post status from publish to draft using hook in wordpress?
- Custom colors for post rows based on post meta value
- How to output comments number of a post per day?
- Custom wp_trim_words() function not trimming right
- Allow role to delete posts but block him the wp-admin
- Why does `url_to_postid` return 0 when testing `page_for_posts` Page?
- How can I display a specific user’s first published post?
- WP_Query in functions.php overrides global $post object, even with wp_reset_query()
- Delete Post From Front-End and attachment permanently
- Limit function to specific post category
- Function to show random posts from a category
- Hiding posts in a list from specified categories
- How to rename “Publish” metabox title in post screen
- Display post from specific date
- Action hook for new pending posts?
- Uppercase first sentence in every post
- Ajax posts filter by date, comments, top views, top likes
- Prepend or add an Image to the content of a Post
- Converting a dynamic piece of code using WordPress Loop into a static one using Post ID
- Why content_arr[‘extended’] removes paragraph tags?
- pre_get_posts query between 2 dates (date stored in custom post meta)
- If modified on same day, show only time
- Update all comments time to random dates?
- Force the “Choose from the most used tags” meta box section to always be expanded
- Show the content that is after the excerpt using child theme
- How to do set post permalinks using 6 digit random unique function?
- Display post x of y within category
- WordPress Automatic Filename Changer
- Worpdress function for difference dates
- Adding bootstrap classes to video shortcodes
- Changing default WP-Site creation date
- Adding a user’s ID behind the tag ref link address
- Add custom text automatically on each post
- How to check in functions.php if there is data in a WP_Query?
- What date to use as a post date? date_gmt or modified_date_gmt
- Defined function isn’t showed on page
- WordPress 302 Redirect to Random Product/Post/Page
- Getting Whitescreen when publishing a post [closed]
- Add code to a specific post’s content
- Modify this line to give alternate format date?
- Post: how to set created date after post has been published [closed]
- Related Posts: Changing Function For Posts Per Page
- wp_query if have posts show date but not in loop
- Query function not executed between element [closed]
- Optimize CPT-function with a loop
- Making a wordpress page print friendly
- Order posts by date
- Get post publishing date from within custom HTML block
- Set Default Post as Parent Child (Nested) Relation
- I need to create “View Profile” and “Edit Profile” links by incorporating the Post Title/ID, but can’t seem to manage it
- How to put the author of the post in the comments?
- Check if almost 10 year old – working code is up to date
- WordPress Sticky Post Count “Fix” Breaking Pagecount by 72 pages!
- Function is printing twice – any suggestions?
- How to add a custom class attribute into code wrapper? [duplicate]
- How can get the last post date of the user?
- How to get post creation date?
- Remove pagination if search returns empty
- Remove HTML tags from all posts
- I want to change the WordPress comments file
- Excluding tag Link from html tags in Post content
- Save All Post Permalink From A Specific Category into a .txt file
- Changing a users posts to drafts upon role change
- How to Display Most View Post in the template file?
- Show post excerpt
- How do I apply a wordpress function to something with no ID inside an archive page?
- Show all posts from the tags without having to set all of them
- Show author bio box
- Display author bio box
- Trim excerpt to first paragraph
- How can I set and update the the_date according to a custom field of the post
- 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?
- Call image from post on index page?
- How to edit label_submit styling?
- How do I get thumbnails?
- When Author add new post change default status to pending
- How to organise post by category and date
- How to limit the number of results for all query_posts on mysite
- User driven content problems
- 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
- Notify Author of the post if admin deletes his post and perform some function
- How do we display a certain category type on a page while hiding all others?
- How to remove a date from wordpress post
- What function does the loop of displaying posts?
- How to use shortcode to get the second to newest post?
- How to sort posts alphabetically based on a specific parent category