Title: Adding Post Date to some posts
Last modified: August 20, 2016

---

# Adding Post Date to some posts

 *  Resolved [innov8iv](https://wordpress.org/support/users/innov8iv/)
 * (@innov8iv)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/adding-post-date-to-some-posts/)
 * My client doesn’t want the date on all posts/pages, so I’m trying to figure out
   a way to use this plug-in.
    Where am I going wrong . . . ? I created two shortcodes:
   the first is an “advanced” type using PHP code and all I have is simply this:
   the_date(‘F j, Y’) in the PHP area. The shortcode is pd Then the other is a simple
   snippet that has this in the ShortCode template: Posted on [pd]. And the shortcode
   for that one is pod. So, I would expect that anywhere in my post that I put [
   pod] I should get “Posted on (the actual date the post was published).”
 * [http://wordpress.org/extend/plugins/shortcodes-ui/](http://wordpress.org/extend/plugins/shortcodes-ui/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Bainternet](https://wordpress.org/support/users/bainternet/)
 * (@bainternet)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/adding-post-date-to-some-posts/#post-3558592)
 * Not really since the shortcodes are saved as a custom post type then the date
   of the shortcode creation should be returned.
 * also you should use `return get_the_date...` instead of `the_date...`

Viewing 1 replies (of 1 total)

The topic ‘Adding Post Date to some posts’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/shortcodes-ui_dbeef6.svg)
 * [ShortCodes UI](https://wordpress.org/plugins/shortcodes-ui/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/shortcodes-ui/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/shortcodes-ui/)
 * [Active Topics](https://wordpress.org/support/plugin/shortcodes-ui/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/shortcodes-ui/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/shortcodes-ui/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Bainternet](https://wordpress.org/support/users/bainternet/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/adding-post-date-to-some-posts/#post-3558592)
 * Status: resolved