Support » Plugin: ShortCodes UI » Adding Post Date to some posts

  • Resolved innov8iv


    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).”

Viewing 1 replies (of 1 total)
  • Plugin Author Bainternet


    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.