if I post today, it lists it as April 30th, 2013 (today is April 6th,
2013).
Your using a lowercase t in your date format string.
t Number of days in the given month 28 through 31
On Line 92:
echo get_the_time('M-t-y \a\t g:ha' , $id);
I think you meant to use d or j instead.
Related Posts:
- Delete attachments from Front end
- How to manage attachment relationships for specific posts in WP 3.5+
- How to trigger a refresh in the media modal
- How can I bulk delete media and attachments using WP-CLI?
- Expanding new Media Uploader in WordPress 3.5
- Uploading Multiple Attachments From Front-End With A Description
- Get all posts (of any post type) an attachment is used in
- How to single click to download image in single post
- delete attachment from front end
- Unattaching unlinked images
- How to add media from front-end to an existing post?
- Creating a multi-file upload form on the front end for attachments
- Unable to upload specific .zip file type via frontend in WordPress 4.0
- Get attachments (get_posts) and WP 3.5 new uploader
- How to count media attachments?
- How to make a customized “Create Gallery” tab in the ‘Add Media’ window?
- How to retrieve alt attribute for an attachment (uploaded image)?
- Get the path of the first attached media (single.php)
- Show attached media image if no thumbnail image detected
- media ‘path’ issue / concern when bringing files live
- Media library quick/inline edit
- How to compress image before inserting to wordpress using wp_insert_attachment function?
- Massive photogallery import
- Gutenberg Block: Image resolution
- How to add media from front-end to an existing post and edit file title
- Media Library Mess After FTP … /uploads
- wp_delete_attachment doesn’t delete image files / doesn’t work
- Setting an image as post header (not featured image)
- Using the GetMediaLibrary() method in python-wordpress-xmlrpc.media, how to iterate over the result?
- Remove attached media
- Submit post and upload image from front-end
- Get all post attachments except featured image
- Stop WordPress from reserving slugs for media items?
- Changing attachment urls?
- Add custom class to attachment in media library grid mode
- How can I UN-attach media from a post?
- Is it possible to query specific WordPress Attachment files (.ppt & .pdf) and output them in a list?
- How to get attachments for a specific post type?
- Make individual attachments private?
- exposing attachment uploading to the front end — delicate
- Get the attachment URL on single.php
- Way to display media library in frontend
- Insert custom ID into wp_get_attachment_link
- How to add attachment without uploading?
- Reorder “menu order” of attachments to another predefined order
- Change code to display image attachment page
- Add image attachment to post via coding?
- How To Grab All Type Of Attachments, But Images?
- Removing width and height attributes from wp-get-attachment
- Change filename during upload
- Get post attachment images dimension and use in embed code
- use wp_get_attachment_image() to show attachments
- List Post Attachments – Remove Image Thumbnails
- Link to full size image or attachment page in photo theme
- How do i add LIGHTBOX to Attachments?
- How to specify width and height in the_content for image attachments
- Post edit – Media Library – Only get images from current post
- delete image attachments of a custom post type except featured image
- Import Attachments – not attaching to post_parent
- Media is not attached after import
- How to redirect ‘file url’ to ‘post url’ i.e. in attachment.php
- Pull images from the gallery
- Delete associated thumbnails when calling wp_delete_attachment
- How to allow empty title for attachments?
- Post Gallery list attachments except the one used as post thumbnail
- Echo Permalink in Attachment outside of loop?
- How can I display a link to a post’s (Word doc or pdf) attachment?
- GUID field in wp_posts – relevance for attachments?
- Prevent image from being accessible via url as a post?
- Upload multiple image with media_handle_upload with multiple file field [duplicate]
- get_post orderby not working in plugin
- Delete child post and attachment links to parent post
- Remove attachment from database
- Better solution for managing media attachments with `wp_editor()`?
- Display Audio Attachment URL
- How to set order for attachment form field?
- changing the default picture size link url
- Theming media inserts
- File Attachment display title in template
- add image caption
- Do custom post type (CPT) attachments/media store the parent post ID?
- Get all post embedded images
- Shortcode for Custom Field of Media Attachment (to use with Featured Images)
- Programmatically Altering Gallery Link and image size?
- File was uploaded, but it is not shown on media section of the dashboard
- wp_get_attachment_metadata is empty
- Get posts associated with media attachment
- Restricted Attachments/Change Attachment Upload Location
- Hide Image Container if No Image Attachments
- How to remove attachments from main query via pre_get_posts?
- Post attachments doesn’t show after manual db import
- Possible to “Attach” images to multiple posts without uploading twice from Add media Section?
- How to get boolean if file A is attached to post B
- WordPress Attachments vs Post Meta
- open image after clicking on single.php with different stylesheet in wordpress
- WPML : how to pick a featured image only once for different languages?
- How do I get link URL (not file URL or attachment URL) of an attached image [duplicate]
- Attachment page custom title?
- Media library upload hook
- How to properly move media files and update data?